swayfx/sway/desktop
Aleksei Bavshin 1a5db66366 xdg-shell: use toplevel geometry to adjust the popup box
`popup_unconstrain` uses view coordinates to init the output box for
popups. However wlroots expects the box to be set in a toplevel surface
coordinate system, which is not always equal to view. The difference
between those is a window geometry set via xdg-shell.

GTK4 reserves some space for client-side decoration and thus has a
window with top left corner not matching to (0, 0) of a surface. The box
calculated without taking that into account was slightly shifted
compared to the actual output and allowed to position part of the popup
off screen.

(cherry picked from commit aa443629b58e1d3d10cf64e689b661c076808d66)
2022-01-16 19:26:57 +01:00
..
desktop.c Stop using wlr_output->{lx,ly} 2019-03-11 12:43:01 -04:00
idle_inhibit_v1.c idle_inhibit: Fix tree view after changes in commit 152a559e 2021-10-04 16:25:35 +02:00
layer_shell.c Destroy sub-surfaces with parent layer-shell surface 2022-01-09 11:49:53 +01:00
output.c output: change output::destroy to output::disable 2021-12-17 14:39:48 +01:00
render.c Add focused_tab_title 2021-12-10 16:09:29 +01:00
surface.c Make handle_destroy and output_repaint_timer_handler static 2020-03-04 03:09:43 +01:00
transaction.c transaction: Remove unused ready_immediately 2021-02-23 19:38:05 +01:00
xdg_shell.c xdg-shell: use toplevel geometry to adjust the popup box 2022-01-16 19:26:57 +01:00
xwayland.c xwayland: Clear wlr_xwayland_surface in handle_destroy 2021-10-19 10:42:19 +03:00