labwc/src/input
John Lindgren a672e8a9fd interactive: set grab parameters at cursor press
Add interactive_set_grab_context() which is called when the mouse button
is first pressed, before interactive_begin(). This fixes two small issues:

- The cursor origin position for interactive move/resize was slightly
  off (depending on mouse resolution), because it was set after the
  mouse had already moved slightly. Now it's exact.

- If app- or keybind-initiated maximize (etc.) happened after the button
  press but before the mouse was moved, then interactive_begin() would
  still start move/resize even though the view might now be far away
  from the cursor. Now interactive_cancel() works as expected, even if
  called before interactive_begin().

Also, make sure to call interactive_cancel() for un-maximize as well.
2026-02-10 21:29:16 +00:00
..
cursor.c interactive: set grab parameters at cursor press 2026-02-10 21:29:16 +00:00
gestures.c tree-wide: use forward declarations for wlr types 2025-09-07 19:34:30 +09:00
ime.c tree-wide: use forward declarations for wlr types 2025-09-07 19:34:30 +09:00
input.c src: include primary header first 2025-07-29 21:51:56 +01:00
key-state.c Remove unused function key_state_nr_pressed_keys() 2025-09-26 10:41:21 -04:00
keyboard.c Use "cycle" instead of "osd" across the codebase 2025-11-30 16:20:16 +09:00
meson.build input: move tablet tool functions into tablet.c 2025-06-14 13:45:51 +01:00
tablet-pad.c tree-wide: use forward declarations for wlr types 2025-09-07 19:34:30 +09:00
tablet.c tree-wide: use forward declarations for wlr types 2025-09-07 19:34:30 +09:00
touch.c tree-wide: use forward declarations for wlr types 2025-09-07 19:34:30 +09:00