Author: olivier
Date: 2008-10-30 17:49:12 +0000 (Thu, 30 Oct 2008)
New Revision: 28517

Modified:
   xfwm4/trunk/ChangeLog
   xfwm4/trunk/src/client.c
   xfwm4/trunk/src/main.c
Log:
        * src/client.c: Fix minimize all other windows,
          src/main.c: Fix compilation warning.

Modified: xfwm4/trunk/ChangeLog
===================================================================
--- xfwm4/trunk/ChangeLog       2008-10-30 17:10:47 UTC (rev 28516)
+++ xfwm4/trunk/ChangeLog       2008-10-30 17:49:12 UTC (rev 28517)
@@ -1,3 +1,8 @@
+2008-10-30  olivier
+
+       * src/client.c: Fix minimize all other windows,
+         src/main.c: Fix compilation warning.
+
 2008-10-29  olivier
 
        * src/inline-stock-rolldown.h, src/inline-stock-maximize.h,

Modified: xfwm4/trunk/src/client.c
===================================================================
--- xfwm4/trunk/src/client.c    2008-10-30 17:10:47 UTC (rev 28516)
+++ xfwm4/trunk/src/client.c    2008-10-30 17:49:12 UTC (rev 28517)
@@ -1452,7 +1452,7 @@
 {
     ScreenInfo *screen_info;
     DisplayInfo *display_info;
-    
+
     g_return_if_fail (c != NULL);
     g_return_if_fail (c->window != None);
 
@@ -2500,19 +2500,22 @@
 void
 clientWithdrawAll (Client * c, int ws)
 {
+    GList *index;
+    Client *c2;
     ScreenInfo *screen_info;
-    Client *c2;
-    int i;
 
     g_return_if_fail (c != NULL);
 
     TRACE ("entering clientWithdrawAll");
 
     screen_info = c->screen_info;
-    for (c2 = c->next, i = 0; (c2) && (i < screen_info->client_count); c2 = 
c2->next, i++)
+    for (index = screen_info->windows_stack; index; index = g_list_next 
(index))
     {
-        if (CLIENT_CAN_HIDE_WINDOW (c2)
-            && !clientIsValidTransientOrModal (c2) && (c2 != c))
+        c2 = (Client *) index->data;
+
+        if ((c2 != c)
+            && CLIENT_CAN_HIDE_WINDOW (c2)
+            && !clientIsValidTransientOrModal (c2))
         {
             if (((!c) && (c2->win_workspace == ws))
                  || ((c) && !clientIsTransientOrModalFor (c, c2)
@@ -2527,12 +2530,12 @@
 void
 clientClearAllShowDesktop (ScreenInfo *screen_info)
 {
+    GList *index;
+
     TRACE ("entering clientClearShowDesktop");
 
     if (screen_info->show_desktop)
     {
-        GList *index = NULL;
-
         for (index = screen_info->windows_stack; index; index = g_list_next 
(index))
         {
             Client *c = (Client *) index->data;

Modified: xfwm4/trunk/src/main.c
===================================================================
--- xfwm4/trunk/src/main.c      2008-10-30 17:10:47 UTC (rev 28516)
+++ xfwm4/trunk/src/main.c      2008-10-30 17:49:12 UTC (rev 28517)
@@ -62,14 +62,8 @@
 #include "startup_notification.h"
 #include "compositor.h"
 #include "spinning_cursor.h"
+#include "stock_icons.h"
 
-/* icons */
-#include "inline-stock-maximize.h"
-#include "inline-stock-unmaximize.h"
-#include "inline-stock-rollup.h"
-#include "inline-stock-rolldown.h"
-#include "inline-stock-minimize.h"
-
 #define BASE_EVENT_MASK \
     SubstructureNotifyMask|\
     StructureNotifyMask|\

_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to