swayfx/sway/desktop
Brian Ashworth dd28e6a6d6 Fix xwayland configure request scratchpad crash
This fixes a crash in `container_init_floating` when a xwayland view
sends a configure request while in the scratchpad.

`container_init_floating` gets called so the configured minimum and
maximum sizes gets respected when resizing to the requested size. Since
the workspace was NULL, it would SIGSEGV when attempting to get the
workspace's output for the output box retrieval.

This extracts the resizing portion of `container_init_floating` into a
separate function. If the container is in the scratchpad, it will just
be resized and skip the centering.

Additionally, `container_init_floating` has been renamed to
`container_floating_resize_and_center` to more accurately describe what
it does.
2019-03-31 09:32:23 +03:00
..
desktop.c Stop using wlr_output->{lx,ly} 2019-03-11 12:43:01 -04:00
idle_inhibit_v1.c Implement inhibit_idle command 2019-03-24 19:26:12 -06:00
layer_shell.c Handle seat_get_focused_workspace returning NULL 2019-03-12 19:14:04 +01:00
output.c Fix output config retrieval for new outputs 2019-03-16 10:40:46 -06:00
render.c Remove debug tree 2019-03-18 11:29:19 -04:00
transaction.c Implement inhibit_idle command 2019-03-24 19:26:12 -06:00
xdg_shell.c Introduce default seatop 2019-03-17 10:02:04 -06:00
xdg_shell_v6.c Introduce default seatop 2019-03-17 10:02:04 -06:00
xwayland.c Fix xwayland configure request scratchpad crash 2019-03-31 09:32:23 +03:00