labwc/include
tokyo4j 25f5cdd3a6 Refactor the logic of placing client-menu with ShowMenu action
Before this commit, we assumed `ShowMenu` action is not bound to any
buttons other than window menu button and always place the client-menu
under the window-menu button when atCursor="no". Also, it was going to be
difficult to distinguish whether the action is executed from the window
menu button or the window icon, which will be added soon.

This commit fixes it to open the menu under the actually-clicked button by
passing `cursor_context` to `actions_run()`, with some refactoring:
- `seat->pressed.resize_edges` is removed and it's calculated from the
  cursor position and `seat->pressed.type` just before running Resize
  action. This slightly changes the existing logic to determine the
  resizing edges with Alt-Right + Drag mousebinding, but
  `seat->pressed.type` is still stored on button press so it doesn't bring
  back the issue #543.
- `seat->pressed.toplevel` is removed and `get_toplevel()` in
  `update_pressed_surface()` may be called more often, but its overhead
  will be negligible.
2024-09-21 18:07:34 +01:00
..
button Fix some header includes detected by clangd 2024-04-21 21:58:57 +02:00
common action: make "FocusOutput" behave like "MoveToOutput" 2024-08-24 14:59:42 -04:00
config interactive: allow moving horizontally/vertically maximized window 2024-08-26 20:30:22 +02:00
input input: move cursor event listeners from tablet to seat 2024-08-13 18:40:34 +02:00
menu client send to menu 2024-09-19 06:36:27 +01:00
action.h Refactor the logic of placing client-menu with ShowMenu action 2024-09-21 18:07:34 +01:00
buffer.h includes: identifier consistency in include guards 2023-05-13 22:29:21 +01:00
debug.h includes: identifier consistency in include guards 2023-05-13 22:29:21 +01:00
decorations.h includes: identifier consistency in include guards 2023-05-13 22:29:21 +01: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
idle.h Add support for ext_idle_notify_v1.. 2023-07-09 08:26:33 +01:00
labwc.h Refactor the logic of placing client-menu with ShowMenu action 2024-09-21 18:07:34 +01:00
layers.h xdg: support xdg-shell v3 with popup repositioning 2024-07-01 20:16:31 +01:00
magnifier.h backend/drm: Implement support for renderer loss recovery 2024-07-23 14:44:31 +02:00
meson.build Make xwayland support optional 2020-12-30 10:29:21 +00:00
node.h session-lock: allow client to update cursor shape 2024-05-31 11:21:29 +09:00
osd.h osd: add window-switcher custom field (#1670) 2024-04-10 23:39:31 +01:00
output-state.h chase: output->pending 2024-07-17 21:28:59 +01:00
output-virtual.h Add optional headless fallback output 2024-03-08 13:54:13 +01:00
overlay.h overlay: allow to draw both/either of filled/outlined rectangle 2024-04-22 19:22:23 +01: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: allow ssd to be smaller than minimal size by hiding buttons 2024-09-03 08:12:25 -04:00
ssd.h Refactor the logic of placing client-menu with ShowMenu action 2024-09-21 18:07:34 +01:00
theme.h theme: add circle button hover effect (#2127) 2024-09-10 22:14:30 +01:00
view-impl-common.h view: commonize sub-view logic in view_move_to_front/back() 2023-10-21 15:40:56 +01:00
view.h theme: add button padding and spacing (#2127) 2024-09-10 22:14:30 +01:00
window-rules.h wayland: add support for security-context-v1 2024-05-29 22:28:06 +01:00
workspaces.h workspaces: react to Reconfigure 2024-04-22 05:44:52 +09:00
xwayland.h xwayland: set initial geometry in map_request handler 2024-07-19 22:40:43 +01:00