labwc/src
tokyo4j b8d3fafa98 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 19:22:10 +09:00
..
button src/button/button-svg: reduce debug log spam 2024-06-10 19:52:37 +01: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
decorations chase: request initial configure 2024-07-17 21:28:59 +01:00
input Refactor the logic of placing client-menu with ShowMenu action 2024-09-21 19:22:10 +09:00
menu Refactor the logic of placing client-menu with ShowMenu action 2024-09-21 19:22:10 +09:00
ssd Refactor the logic of placing client-menu with ShowMenu action 2024-09-21 19:22:10 +09:00
action.c Refactor the logic of placing client-menu with ShowMenu action 2024-09-21 19:22:10 +09:00
buffer.c theme: create hover button fallbacks 2023-12-21 02:42:23 +01:00
debug.c overlay: allow to draw both/either of filled/outlined rectangle 2024-04-22 19:22:23 +01:00
desktop.c action: make "FocusOutput" behave like "MoveToOutput" 2024-08-24 14:59:42 -04:00
dnd.c dnd: show dnd icon above layer-shell surfaces 2024-06-25 14:56:57 +02:00
edges.c edges.c: fix flicker of snapped windows in nested session 2024-07-20 08:16:12 -04:00
foreign.c osd: prevent handling cursor actions in preview mode 2024-05-05 21:05:32 +01:00
idle.c Chase wlroots: drop KDE idle protocol 2023-11-27 21:01:53 +00:00
interactive.c Revert "src/interactive.c: don't unshade when view is un-tiled by dragging" 2024-08-28 08:24:26 -04:00
layers.c layer-shell: stop sending configure events on surface creation 2024-07-23 14:47:56 +02:00
magnifier.c backend/drm: Implement support for renderer loss recovery 2024-07-23 14:44:31 +02:00
main.c src/main.c: initialize locale after reading environments file 2024-06-23 01:02:03 +02:00
meson.build chase: output->pending 2024-07-17 21:28:59 +01:00
node.c common: Add znew/znew_n() macros 2022-09-18 15:25:19 -04:00
osd-field.c Replace _ with - in source file names 2024-05-22 07:10:51 +01:00
osd.c Disable pango glyph position rounding 2024-07-19 22:17:42 +01:00
output-state.c chase: output->pending 2024-07-17 21:28:59 +01:00
output-virtual.c Fix various typos across the codebase 2024-03-08 13:59:20 +01:00
output.c action: make "FocusOutput" behave like "MoveToOutput" 2024-08-24 14:59:42 -04:00
overlay.c overlay: allow to draw both/either of filled/outlined rectangle 2024-04-22 19:22:23 +01:00
placement.c Fix various typos across the codebase 2024-03-08 13:59:20 +01:00
regions.c interactive: allow moving horizontally/vertically maximized window 2024-08-26 20:30:22 +02:00
resistance.c interactive: allow moving horizontally/vertically maximized window 2024-08-26 20:30:22 +02:00
resize-outlines.c Implement <resize><drawContents> 2024-06-15 21:17:01 +01:00
seat.c Refactor the logic of placing client-menu with ShowMenu action 2024-09-21 19:22:10 +09:00
server.c backend/drm: Implement support for renderer loss recovery 2024-07-23 14:44:31 +02:00
session-lock.c session-lock: clear focused surface on lock 2024-07-07 15:48:32 +09:00
snap-constraints.c snap: cache and ignore last-snapped edge when growing or shrinking 2024-04-10 23:30:28 +01:00
snap.c theme: add button padding and spacing (#2127) 2024-09-10 22:14:30 +01:00
tearing.c tearing: add fullscreen options (#1941) 2024-08-06 21:23:10 +01:00
theme.c theme: round the hover effect along the window border 2024-09-15 21:52:13 +01:00
view-impl-common.c view: update top layer visibility on map 2024-04-29 14:39:05 +02:00
view.c theme: add button padding and spacing (#2127) 2024-09-10 22:14:30 +01:00
window-rules.c Refactor the logic of placing client-menu with ShowMenu action 2024-09-21 19:22:10 +09:00
workspaces.c Disable pango glyph position rounding 2024-07-19 22:17:42 +01:00
xdg-popup.c src/xdg-popup.c: take into account CSD borders for unconstraining 2024-07-23 14:53:33 +02:00
xdg.c interactive: allow moving horizontally/vertically maximized window 2024-08-26 20:30:22 +02:00
xwayland-unmanaged.c chase: disable restacking of unmanaged windows 2024-07-17 21:28:59 +01:00
xwayland.c theme: add button padding and spacing (#2127) 2024-09-10 22:14:30 +01:00