From ea8f99bce7c6c08bf08d6c71bc0586dab985a0d5 Mon Sep 17 00:00:00 2001
From: Olivier Fourdan <fourdan.olivier@wanadoo.fr>
Date: Mon, 17 Jan 2005 21:00:57 +0000
Subject: [PATCH] Fix bug #694: Window not showing when compositor is enabled.

(Old svn revision: 12295)
---
 src/compositor.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/compositor.c b/src/compositor.c
index 75e417790..26ba16b40 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -1394,17 +1394,13 @@ add_win (DisplayInfo *display_info, Window id, Client *c, guint opacity)
 {
     ScreenInfo *screen_info = NULL;
     CWindow *new;
-    Status test;
 
     TRACE ("entering add_win: 0x%lx", id);
 
     new = g_new0 (CWindow, 1);
 
-    gdk_error_trap_push ();
     myDisplayGrabServer (display_info);
-    test = XGetWindowAttributes (display_info->dpy, id, &new->attr);
-
-    if (gdk_error_trap_pop () || !test)
+    if (!XGetWindowAttributes (display_info->dpy, id, &new->attr))
     {
         g_free (new);
         myDisplayUngrabServer (display_info);
-- 
GitLab