mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
cursor: Clear grabbed_view when switching from MOVE/GRAB
Better not to leave a dangling pointer to screw us over later. Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
parent
3e973c92ab
commit
f9f9d809c8
1 changed files with 1 additions and 0 deletions
|
|
@ -551,6 +551,7 @@ cursor_button(struct wl_listener *listener, void *data)
|
||||||
if (server->input_mode != LAB_INPUT_STATE_PASSTHROUGH) {
|
if (server->input_mode != LAB_INPUT_STATE_PASSTHROUGH) {
|
||||||
/* Exit interactive move/resize/menu mode. */
|
/* Exit interactive move/resize/menu mode. */
|
||||||
server->input_mode = LAB_INPUT_STATE_PASSTHROUGH;
|
server->input_mode = LAB_INPUT_STATE_PASSTHROUGH;
|
||||||
|
server->grabbed_view = NULL;
|
||||||
cursor_rebase(&server->seat, event->time_msec);
|
cursor_rebase(&server->seat, event->time_msec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue