[Xfce4-commits] r29732 - in xfwm4/trunk: . src

Olivier Fourdan olivier at xfce.org
Wed Apr 8 14:13:43 CEST 2009


Author: olivier
Date: 2009-04-08 12:13:43 +0000 (Wed, 08 Apr 2009)
New Revision: 29732

Modified:
   xfwm4/trunk/ChangeLog
   xfwm4/trunk/src/compositor.c
Log:
	* src/compositor.c: Ignore stacking when detecting overlays

Modified: xfwm4/trunk/ChangeLog
===================================================================
--- xfwm4/trunk/ChangeLog	2009-04-08 12:13:35 UTC (rev 29731)
+++ xfwm4/trunk/ChangeLog	2009-04-08 12:13:43 UTC (rev 29732)
@@ -1,5 +1,9 @@
 2009-04-08	olivier
 
+	* src/compositor.c: Ignore stacking when detecting overlays
+
+2009-04-08	olivier
+
 	* src/parserc.c, src/settings.c, src/events.c: Plug various memory
 	  leaks
 

Modified: xfwm4/trunk/src/compositor.c
===================================================================
--- xfwm4/trunk/src/compositor.c	2009-04-08 12:13:35 UTC (rev 29731)
+++ xfwm4/trunk/src/compositor.c	2009-04-08 12:13:43 UTC (rev 29732)
@@ -1799,21 +1799,12 @@
         WIN_IS_NATIVE_OPAQUE(cw) && WIN_IS_REDIRECTED(cw) && !WIN_IS_SHAPED(cw)
         && ((screen_info->wins_unredirected > 0) || is_fullscreen(cw)))
     {
-        CWindow *top;
-        GList *index;
-
-        index = screen_info->cwindows;
-        top = (CWindow *) index->data;
-
-        if (cw == top)
+        /* Make those opaque, we don't want them to be transparent */
+        cw->opacity = NET_WM_OPAQUE;
+        if (screen_info->params->unredirect_overlays)
         {
-            /* Make those opaque, we don't want them to be transparent */
-            cw->opacity = NET_WM_OPAQUE;
-            if (screen_info->params->unredirect_overlays)
-            {
-                TRACE ("Unredirecting toplevel window 0x%lx", cw->id);
-                unredirect_win (cw);
-            }
+            TRACE ("Unredirecting toplevel window 0x%lx", cw->id);
+            unredirect_win (cw);
         }
     }
 }




More information about the Xfce4-commits mailing list