[Xfce4-commits] <xfwm4:master> Revert part of git commit 8637c3a as this breaks deletetion of current workspace (bug 8827)

Olivier Fourdan noreply at xfce.org
Thu Jul 19 09:34:03 CEST 2012


Updating branch refs/heads/master
         to c4d89dd11e2c33f6f5797fb82910b97d483fb599 (commit)
       from aa75f33e8dc2343df631a0a296e9ef54ea8a88ed (commit)

commit c4d89dd11e2c33f6f5797fb82910b97d483fb599
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Wed Jul 18 22:30:36 2012 +0200

    Revert part of git commit 8637c3a as this breaks deletetion
    of current workspace (bug 8827)

 src/workspaces.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/workspaces.c b/src/workspaces.c
index fb19ab0..f57eec9 100644
--- a/src/workspaces.c
+++ b/src/workspaces.c
@@ -492,7 +492,8 @@ workspaceInsert (ScreenInfo * screen_info, guint position)
 void
 workspaceDelete (ScreenInfo * screen_info, guint position)
 {
-    guint count;
+    Client *c;
+    guint i, count;
 
     g_return_if_fail (screen_info != NULL);
 
@@ -504,6 +505,14 @@ workspaceDelete (ScreenInfo * screen_info, guint position)
         return;
     }
 
+    for (c = screen_info->clients, i = 0; i < screen_info->client_count; c = c->next, i++)
+    {
+        if (c->win_workspace > position)
+        {
+            clientSetWorkspace (c, c->win_workspace - 1, TRUE);
+        }
+    }
+
     workspaceSetCount(screen_info, count - 1);
 }
 


More information about the Xfce4-commits mailing list