mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-14 22:49:58 +00:00
xwayland/window-manager: Avoid doing work for unknown window
In particular if the hash table lookup fails and returns NULL then that value would be passed into weston_wm_window_schedule_repaint which does not accept a NULL value.
This commit is contained in:
parent
23d330ec9d
commit
aa521bd1bc
|
@ -800,7 +800,9 @@ weston_wm_handle_property_notify(struct weston_wm *wm, xcb_generic_event_t *even
|
|||
struct weston_wm_window *window;
|
||||
|
||||
window = hash_table_lookup(wm->window_hash, property_notify->window);
|
||||
if (window)
|
||||
if (!window)
|
||||
return;
|
||||
|
||||
window->properties_dirty = 1;
|
||||
|
||||
weston_log("XCB_PROPERTY_NOTIFY: window %d, ",
|
||||
|
|
Loading…
Reference in a new issue