labwc/src/common/meson.build

26 lines
435 B
Meson
Raw Normal View History

labwc_sources += files(
'direction.c',
'box.c',
'buf.c',
'dir.c',
'fd-util.c',
'file-helpers.c',
'font.c',
2020-08-06 15:01:08 +01:00
'grab-file.c',
2022-08-20 00:01:06 +02:00
'graphic-helpers.c',
'match.c',
'mem.c',
2021-02-16 21:04:49 +00:00
'nodename.c',
'parse-bool.c',
'parse-double.c',
'scaled-font-buffer.c',
'scaled-img-buffer.c',
'scaled-rect-buffer.c',
'scaled-scene-buffer.c',
2022-02-21 03:18:38 +01:00
'scene-helpers.c',
2024-10-07 09:15:34 +09:00
'set.c',
cursor: process layer subsurfaces in `cursor_button_press()` ...to give keyboard focus to layer-shell clients if exclusive or on-demand interactivity is set, so that menu popups can be navigated with the keyboard. This still only works if the client is in top (or overlay) layers. Support for bottom and background to be done as a separate patch set. Revert 06b19f0 to process layer-shell subsurfaces in `cursor_button_press()`, but only when their parent layer-shell surface has keyboard interactivity. Fix bug in `get_cursor_context()` which resulted in layer-surfaces not being detected correctly. Background: Commit 06b19f0 (issue #1131) disabled processing of layer-shell subsurfaces in cursor_button_press() because when pressing a task in Waybar (Gtk panel using layer-shell subsurfaces) the foreign-toplevel minimize-raise action did not work correctly as the action logic relied on the recipient window being activated and by clicking on the panel, the panel itself was both surface-focusd and activated (and thus the window de-activated). The un-intended consequence was that by not responding to layer-subsurface cursor buttons presses, layer-shell clients (such as panels) were not given keyboard focus if they indeed wanted it by setting exclusive or on-demand keyboard interactivity. The good news is that that following @jlindgren90's refactoring (various) the only place where we call `view_set_actived()` is in `focus_change_notify()` in `seat.c` and we now only do it for views (bb8f0bc). Another side-effect (positive) of 06b19f0 was that a Waybar dnd bug was fixed (pointer-serial-number validation failure). Have tested with sfwbar, waybar and tint (test-panel) the following results: - Minimize-raise works even when on-demand keyboard interactivity is set - Keyboard interactivity is given popup-menus (sfwbar and tint) when the panels are in the top layer (support for bottom will be as a separate patch set) - Waybar dnd still works (even when hard-coding keyboard-interactivity) References: - https://github.com/labwc/labwc/commit/bb8f0bc960dca192b8579d67297c0586ec20bfe0 - https://github.com/labwc/labwc/blob/40ce95a68cf19796dd67b0527fddfdbe46181805/src/seat.c#L481-L483 - https://github.com/labwc/labwc/blob/40ce95a68cf19796dd67b0527fddfdbe46181805/src/dnd.c#L24 - https://github.com/johanmalm/tint Fixes: #1572
2024-03-07 19:15:02 +00:00
'surface-helpers.c',
2020-06-19 22:00:22 +01:00
'spawn.c',
2020-10-09 19:46:59 +01:00
'string-helpers.c',
)