[PATCH weston] xwm: don't try to remove nonexistent frame
Tiago Vignatti
tiago.vignatti at intel.com
Fri Jun 1 05:51:08 PDT 2012
Signed-off-by: Tiago Vignatti <tiago.vignatti at intel.com>
---
src/xwayland/window-manager.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/xwayland/window-manager.c b/src/xwayland/window-manager.c
index 92601e5..acec915 100644
--- a/src/xwayland/window-manager.c
+++ b/src/xwayland/window-manager.c
@@ -568,6 +568,9 @@ weston_wm_handle_unmap_notify(struct weston_wm *wm, xcb_generic_event_t *event)
return;
window = hash_table_lookup(wm->window_hash, unmap_notify->window);
+ if (!window->frame_id)
+ return;
+
if (window->repaint_source)
wl_event_source_remove(window->repaint_source);
if (window->cairo_surface)
--
1.7.9.5
More information about the wayland-devel
mailing list