sway-patched-tray-menu-github/sway/desktop
Ryan Dwyer 93ec1af4d9 Fix popup damage issues when toplevel and/or popup uses geometry
The wlr_xdg_popup_get_toplevel_coords function has the following quirks:

* It does not do anything with the coordinates of the passed popup.
Instead, we are required to add them ourselves, which we do by passing
them to the function as the surface local values.
* It adds the geometry (shadows etc) of the toplevel itself, so the
coordinates are surface local rather than content local. For this
reason, we have to negate the toplevel's geometry
(child->view->geometry).
* I may be wrong, but the popup positions appear to be stored in surface
local coordinates rather than content local coordinates. The geometry
(shadows etc) of the popup itself must be negated (surface->geometry).
2018-10-20 23:18:56 +10:00
..
desktop.c Implement type safe arguments and demote sway_container 2018-09-05 18:01:43 +10:00
idle_inhibit_v1.c Fix crash when destroying an idle-inhibiting client 2018-09-16 23:20:58 +10:00
layer_shell.c Minor refactor of input manager 2018-10-20 13:11:43 +10:00
output.c Minor refactor of input manager 2018-10-20 13:11:43 +10:00
render.c Minor refactor of input manager 2018-10-20 13:11:43 +10:00
transaction.c Minor refactor of input manager 2018-10-20 13:11:43 +10:00
xdg_shell.c Fix popup damage issues when toplevel and/or popup uses geometry 2018-10-20 23:18:56 +10:00
xdg_shell_v6.c Fix popup damage issues when toplevel and/or popup uses geometry 2018-10-20 23:18:56 +10:00
xwayland.c Minor refactor of input manager 2018-10-20 13:11:43 +10:00