1
1
mirror of https://github.com/swaywm/sway synced 2026-03-06 23:11:33 +01:00
sway/include
Lars-Ragnar A. Haugen 0356a020c1 layer-shell: handle popup reposition for unconstraining
Layer shell popups were missing a handler for the xdg_popup reposition
event. When a client (e.g. GTK4) creates a popup and then sends a
reposition request, wlroots resets the scheduled geometry back to the
positioner's original value. Without a reposition handler, the
unconstrained geometry computed on the initial commit was lost, causing
popups such as tooltips to render outside the screen viewport.

This was most visible with GTK4 layer shell apps (e.g. taskbars) where
tooltips would appear below the bottom edge of the screen instead of
being flipped/slid into the visible area.

Also switch the destroy listener from wlr_popup->base->events.destroy
to wlr_popup->events.destroy so that cleanup runs before wlroots
asserts that all popup signal listeners have been removed.

Fixes #8518
2026-02-28 22:56:37 +01:00
..
sway layer-shell: handle popup reposition for unconstraining 2026-02-28 22:56:37 +01:00
swaybar swaybar: deduplicate mode and workspace rendering code 2025-05-25 14:48:14 +02:00
swaynag swaynag: Implement wp_cursor_shape_v1 2023-07-31 10:34:11 +02:00
cairo_util.h cairo: Replace <cairo/cairo.h> by <cairo.h> 2021-05-10 10:28:32 +02:00
gesture.h sway: add bindgesture command 2022-05-30 12:20:43 +02:00
ipc-client.h refactor: use JSON_MAX_DEPTH everywhere 2021-10-25 10:18:40 +02:00
ipc.h i3-compat: add GET_BINDING_STATE IPC command 2020-06-14 00:55:14 -04:00
list.h list.c: rename free_flat_list to list_free_items_and_destroy 2018-12-09 01:15:38 +00:00
log.h Use -fmacro-prefix-map to strip build path 2019-07-15 16:35:50 -04:00
loop.h Remove timerfd from loop implementation 2018-10-15 00:26:27 +10:00
meson.build Address review comments 2018-03-28 14:43:23 -04:00
pango.h pango: add printf attribute 2023-04-14 18:34:54 +02:00
pool-buffer.h cairo: Replace <cairo/cairo.h> by <cairo.h> 2021-05-10 10:28:32 +02:00
stringop.h stringop: move over has_prefix() 2025-01-07 16:35:31 +01:00
util.h Rename get_current_time_msec to get_current_time_in_msec and move to util.c 2025-06-16 11:26:26 +02:00