[PATCH weston 1/6] xwm: don't try to remove nonexistent frame

Tiago Vignatti tiago.vignatti at intel.com
Mon Jun 4 10:01:43 PDT 2012


on the first time, the transient surface is mapped and viewable, then if it
gets unmapped on the second time it doesn't show up anymore.

This happens with any X window that Weston maps as transient surface. 

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 0a31a65..baa49e2 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