x11: Handle non-existing properties correctly
Don't try to read out ATOM or WINDOW values if there is no such property.
This commit is contained in:
parent
db9bf1e818
commit
300deba3be
@ -624,6 +624,11 @@ weston_wm_handle_map_notify(struct weston_wm *wm, xcb_generic_event_t *event)
|
||||
if (!reply)
|
||||
/* Bad window, typically */
|
||||
continue;
|
||||
if (reply->type == XCB_ATOM_NONE) {
|
||||
/* No such property */
|
||||
free(reply);
|
||||
continue;
|
||||
}
|
||||
|
||||
p = ((char *) window + props[i].offset);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user