mirror of
https://github.com/labwc/labwc.git
synced 2026-03-01 01:40:24 -05:00
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. |
||
|---|---|---|
| .. | ||
| cursor.c | ||
| gestures.c | ||
| ime.c | ||
| input.c | ||
| key-state.c | ||
| keyboard.c | ||
| meson.build | ||
| tablet-pad.c | ||
| tablet.c | ||
| touch.c | ||