labwc/include
tokyo4j 81204b0537 xwayland: notify correct window stacking order to xwayland
Before this commit, when a normal window is raised, xwayland thought it's
above always-on-top (AOT) windows even though it's actually below AOT
windows in the scene. This means mouse scroll events may be unexpectedly
sent to normal windows below AOT windows even when the cursor is hovering
over a AOT window.

So this commit fixes it by notifying the correct stacking order (where AOT
windows are placed above normal windows) to xwayland every time the
stacking order is updated.

Other benefits of this commit are:
- It makes the code more readable and predictable by aggregating logic
  about stacking order management in xwayland (e.g. shaded windows or
  windows in other workspaces should be notified to xwayland as being
  placed at the bottom).
- As server->last_raised_view is removed in the previous commit, we were
  notifying the stacking order to xwayland every time a window with dialog
  windows is clicked (not when clicking a topmost window without dialogs,
  due to some optimization in wlroots). This commit fixes this by caching
  the window stacking order in xwayland_view->stacking_order and notifying
  it to xwayland only when it's updated.
2025-04-01 16:48:40 +09:00
..
common box: add box_to_fbox() 2025-02-22 20:38:03 +09:00
config ssd: make sizes of invisible SSD extents configurable 2025-02-04 18:55:31 -05:00
img img: remove padding_x from lab_img_render() 2025-01-25 07:27:21 +09:00
input keyboard: add keyboard_get_all_modifiers() 2025-01-13 06:28:37 +09:00
menu menu: dynamically generate top-level pipemenus 2025-03-10 19:42:03 +00:00
protocols Fix typos 2025-01-09 06:59:57 +00:00
action.h menu: remove ShowMenu action from menu items 2025-02-07 17:58:55 +01:00
buffer.h ssd: rework titlebar button rendering 2024-12-23 18:11:32 +09:00
debug.h includes: identifier consistency in include guards 2023-05-13 22:29:21 +01:00
decorations.h project wide: clean up event listeners on shutdown 2025-03-13 17:33:51 +09:00
desktop-entry.h Move "#if HAVE_LIBSFDO" inside desktop-entry.h 2025-01-25 07:27:21 +09:00
dnd.h chase (dnd): refactor to use wlroot's scene_drag_icon 2023-12-03 18:24:26 +00:00
edges.h snap: cache and ignore last-snapped edge when growing or shrinking 2024-04-10 23:30:28 +01:00
foreign-toplevel-internal.h foreign-toplevel: add ext-toplevel-list support 2024-11-09 20:06:19 +00:00
foreign-toplevel.h foreign-toplevel: create generic abstraction 2024-11-09 20:06:19 +00:00
idle.h Add support for ext_idle_notify_v1.. 2023-07-09 08:26:33 +01:00
labwc.h view: remove server->last_raised_view 2025-04-01 16:48:40 +09:00
layers.h project wide: clean up event listeners on shutdown 2025-03-13 17:33:51 +09:00
magnifier.h magnifier: rename some functions 2025-02-23 14:17:31 +09:00
meson.build Make xwayland support optional 2020-12-30 10:29:21 +00:00
node.h node: add node_scaled_scene_buffer_from_node 2024-12-23 18:11:32 +09:00
osd.h osd: support app icons in window switcher 2025-03-17 01:22:24 +09:00
output-state.h output: remove ported wlr_output functions 2024-10-29 21:39:19 +00:00
output-virtual.h Add optional headless fallback output 2024-03-08 13:54:13 +01:00
overlay.h src/overlay.c: clean up timer on exit 2025-02-12 00:09:17 +09:00
placement.h view: honor automatic placement when adjusting floating geometry 2023-12-30 16:50:09 +00:00
regions.h overlay: add snap-to-edge overlay (PR #1652) 2024-04-05 04:35:31 +02:00
resistance.h interactive: allow moving horizontally/vertically maximized window 2024-08-26 20:30:22 +02:00
resize-indicator.h Replace _ with - in source file names 2024-05-22 07:10:51 +01:00
resize-outlines.h Implement <resize><drawContents> 2024-06-15 21:17:01 +01:00
session-lock.h session-lock: restore focused view on unlock 2024-07-07 15:48:32 +09:00
snap-constraints.h snap: cache and ignore last-snapped edge when growing or shrinking 2024-04-10 23:30:28 +01:00
snap.h snap: cache and ignore last-snapped edge when growing or shrinking 2024-04-10 23:30:28 +01:00
ssd-internal.h ssd-titlebar: show fallback icon when no app_id is set 2025-02-23 22:56:03 +01:00
ssd.h ssd: make sizes of invisible SSD extents configurable 2025-02-04 18:55:31 -05:00
theme.h refactor: add LAB_BS_DEFAULT in lab_button_state 2025-01-25 07:27:21 +09:00
view-impl-common.h xwayland: notify correct window stacking order to xwayland 2025-04-01 16:48:40 +09:00
view.h xwayland: notify correct window stacking order to xwayland 2025-04-01 16:48:40 +09:00
window-rules.h Revert "keyboard: add window rule to send release-events (#2377)" 2024-12-29 16:27:34 +09:00
workspaces.h ext-workspace protocol integration 2024-12-23 04:14:53 +01:00
xwayland.h xwayland: notify correct window stacking order to xwayland 2025-04-01 16:48:40 +09:00