swayfx/sway/tree
Brian Ashworth cd8b4ace92 fix opening a floating view on the NOOP output
Since the NOOP output has no size, the minimum floating size is greater
than the workspace size for the NOOP output. In this case, the floater
gets centered in the output instead of the workspace. However, the
NOOP output is not part of the output layout and thus has a NULL box.
Attempting to access the properties of this box was causing a segfault.

This fixes the issue by just setting the floater's box to all zeroes
when mapping on the NOOP output. When the workspace gets moved from the
NOOP output to a new output, any floater whose width or height is zero
or has an x or y location outside of the output, gets passed to
`container_init_floating` again. This will then set the appropriate
size and centering. For any floater that has a valid size and location,
they are preserved.
2019-03-23 23:39:42 +02:00
..
arrange.c Stop using wlr_output->{lx,ly} 2019-03-11 12:43:01 -04:00
container.c fix opening a floating view on the NOOP output 2019-03-23 23:39:42 +02:00
node.c ipc: handle NULL cases for node_get_output 2018-09-15 09:42:49 +01:00
output.c fix opening a floating view on the NOOP output 2019-03-23 23:39:42 +02:00
root.c Handle seat_get_focused_workspace returning NULL 2019-03-12 19:14:04 +01:00
view.c sway_view_child: add listener for view unmap 2019-03-11 10:02:52 +01:00
workspace.c Set prev_workspace_name based off of focus 2019-03-14 10:03:45 -06:00