diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2017-02-28 14:27:52 +0100 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-03-01 13:56:48 +1000 |
commit | 8c9909a99292b2fb4a86de694bb0029f61e35662 (patch) | |
tree | 09e40f624359d9534142b754fe4552302b9ee376 /Xext/panoramiXSwap.c | |
parent | c9cbdada755f1d00d164bef7833f1aef139ffeb0 (diff) |
xwayland: Make sure we have a focus window
During the InitInput() phase, the wayland events get dequeued so we
can possibly end up calling dispatch_pointer_motion_event().
If this occurs before xwl_seat->focus_window is set, it leads to a NULL
pointer derefence and a segfault.
Check for xwl_seat->focus_window in both pointer_handle_frame() and
relative_pointer_handle_relative_motion() prior to calling
dispatch_pointer_motion_event() like it's done in
pointer_handle_motion().
Bugzilla: https://bugzilla.redhat.com/1410804
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xext/panoramiXSwap.c')
0 files changed, 0 insertions, 0 deletions