mirror of
https://github.com/labwc/labwc.git
synced 2026-04-09 08:21:18 -04: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
26e8d7ba23
commit
6dd45a0196
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