mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-09 03:38:03 +02:00
shell: Dont set grab cursor if desktop-shell client died
If we don't have a desktop-shell helper client, don't try to send events to it. https://bugs.freedesktop.org/show_bug.cgi?id=65961
This commit is contained in:
parent
dfe310512b
commit
c9974a0796
1 changed files with 7 additions and 3 deletions
10
src/shell.c
10
src/shell.c
|
|
@ -335,9 +335,13 @@ shell_grab_start(struct shell_grab *grab,
|
|||
grab->pointer = pointer;
|
||||
|
||||
weston_pointer_start_grab(pointer, &grab->grab);
|
||||
desktop_shell_send_grab_cursor(shell->child.desktop_shell, cursor);
|
||||
weston_pointer_set_focus(pointer, shell->grab_surface,
|
||||
wl_fixed_from_int(0), wl_fixed_from_int(0));
|
||||
if (shell->child.desktop_shell) {
|
||||
desktop_shell_send_grab_cursor(shell->child.desktop_shell,
|
||||
cursor);
|
||||
weston_pointer_set_focus(pointer, shell->grab_surface,
|
||||
wl_fixed_from_int(0),
|
||||
wl_fixed_from_int(0));
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue