labwc/src/input
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
..
cursor.c Refactor the logic of placing client-menu with ShowMenu action 2024-09-21 18:07:34 +01:00
gestures.c Move gesture handling out of cursor.c 2023-10-30 21:14:04 +00:00
ime.c IME: fix flicker when popup surface is initially mapped 2024-06-04 03:59:56 +09:00
input.c keyboard: set keyboard layout on reconfigure 2024-01-19 18:59:14 +00:00
key-state.c key-state: use struct assignment 2024-03-04 02:27:40 +01:00
keyboard.c Refactor the logic of placing client-menu with ShowMenu action 2024-09-21 18:07:34 +01:00
meson.build input: add tablet tool setup 2024-05-27 22:40:50 +02:00
tablet-pad.c input: move cursor event listeners from tablet to seat 2024-08-13 18:40:34 +02:00
tablet-tool.c input: move cursor event listeners from tablet to seat 2024-08-13 18:40:34 +02:00
tablet.c Refactor the logic of placing client-menu with ShowMenu action 2024-09-21 18:07:34 +01:00
touch.c Refactor the logic of placing client-menu with ShowMenu action 2024-09-21 18:07:34 +01:00