mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
For `Drag` mousebinds, `pressed_in_context` is set by `cursor_process_button_press()` and cleared by `cursor_process_motion()` which runs actions bound to them. However, when `cursor_process_motion()` is called while interactive move/resize, it doesn't clear `pressed_in_context` due to the early-return and the `Drag` mousebinds are unexpectedly executed on another call to `cursor_process_motion()` after the interactive move/resize is finished by button release, even when the button is not pressed. So this commit fixes it by always clearing `pressed_in_context` on button releases. |
||
|---|---|---|
| .. | ||
| cursor.c | ||
| gestures.c | ||
| ime.c | ||
| input.c | ||
| key-state.c | ||
| keyboard.c | ||
| meson.build | ||
| tablet-pad.c | ||
| tablet-tool.c | ||
| tablet.c | ||
| touch.c | ||