x11: Handle non-existing properties correctly

Don't try to read out ATOM or WINDOW values if there is no such property.
dev
Kristian Høgsberg 13 years ago
parent db9bf1e818
commit 300deba3be
  1. 5
      src/xserver-launcher.c

@ -624,6 +624,11 @@ weston_wm_handle_map_notify(struct weston_wm *wm, xcb_generic_event_t *event)
if (!reply) if (!reply)
/* Bad window, typically */ /* Bad window, typically */
continue; continue;
if (reply->type == XCB_ATOM_NONE) {
/* No such property */
free(reply);
continue;
}
p = ((char *) window + props[i].offset); p = ((char *) window + props[i].offset);

Loading…
Cancel
Save