forked from AuroraMiddleware/gtk
Missing NULL-check in XI2's implementation for get_window()
Add missing check in gdk_x11_device_manager_xi2_get_window(), returning NULL if no valid XI2Event* has been found. Calling code seems to be prepared to handle NULLs coming from this function, so it should be safe enough (e.g. check gdk_event_source_get_filter_window()). https://bugzilla.gnome.org/show_bug.cgi?id=700465
This commit is contained in:
parent
678ccd6fc1
commit
201410de60
@ -1682,6 +1682,8 @@ gdk_x11_device_manager_xi2_get_window (GdkEventTranslator *translator,
|
||||
return NULL;
|
||||
|
||||
ev = (XIEvent *) xevent->xcookie.data;
|
||||
if (!ev)
|
||||
return NULL;
|
||||
|
||||
get_event_window (translator, ev, &window);
|
||||
return window;
|
||||
|
Loading…
Reference in New Issue
Block a user