wlroots/rootston
Genki Sky 32013abae6 rootston: xdg-shell*: Fix get_size() for newly-mapped views
The user-visible issue is that newly-mapped xdg-shell* windows would
sometimes start with their top-left-corner, rather than their center, in
the center of the screen. This is because get_size() would
conservatively fall back on (width, height) == (0, 0) if both
set_window_geometry() had not been called, and it found
view->wlr_surface to be NULL.

But, view->wlr_surface is only set to non-NULL in view_map(). We call
get_size() before this. Fortunately, the wlr_surface in question is
accessible via view->xdg_shell{,_v6}->surface, so always fall back on
that. We can assert its presence instead of further falling back on
(width, height) == (0, 0).

Signed-off-by: Genki Sky <sky@genki.is>
2018-05-30 20:21:19 -04:00
..
config.c Make lazy xwayland start default in rootston 2018-05-08 22:43:31 +02:00
cursor.c rootston: Keep focus unchanged when non-focusable element clicked 2018-05-24 16:10:29 +02:00
desktop.c virtual-keyboard: add support for the virtual-keyboard-v1 protocol 2018-05-28 10:05:55 +02:00
ini.c Fix gcc string truncation warnings 2018-04-13 14:37:53 +09:00
input.c Fix x11 backend 2018-03-27 09:20:21 +02:00
keyboard.c rootston: wire up window alpha keybinding 2018-02-25 16:53:36 +01:00
layer_shell.c layer-shell: Fix crash when cursor is intially outside any output 2018-04-26 14:08:30 +02:00
main.c rootston: use wl_display_destroy_clients 2018-05-29 22:50:26 +01:00
meson.build virtual-keyboard: add support for the virtual-keyboard-v1 protocol 2018-05-28 10:05:55 +02:00
output.c output: correctly clear screen when fullscreened 2018-05-20 13:44:18 +01:00
rootston.ini.example Document xwayland rootston config changes 2018-05-08 22:54:45 +02:00
seat.c rootston: Disable keyboard focus on inactive views 2018-05-24 16:05:12 +02:00
virtual_keyboard.c virtual-keyboard: add support for the virtual-keyboard-v1 protocol 2018-05-28 10:05:55 +02:00
wl_shell.c rootston: add destroy to view interface 2018-03-12 09:17:06 +01:00
xdg_shell.c rootston: xdg-shell*: Fix get_size() for newly-mapped views 2018-05-30 20:21:19 -04:00
xdg_shell_v6.c rootston: xdg-shell*: Fix get_size() for newly-mapped views 2018-05-30 20:21:19 -04:00
xwayland.c xwayland: emit new_surface when unmapped 2018-04-13 14:37:13 +02:00