[Xfce4-commits] <xfwm4:master> Avoid crash if only one client is eligible for cycling

Olivier Fourdan noreply at xfce.org
Fri Oct 2 09:18:01 CEST 2009


Updating branch refs/heads/master
         to 270d5620a84615f3eaefadea1c73c0fe468b931c (commit)
       from 52a6bca14a2264e5e9145bea7fee777697d043f9 (commit)

commit 270d5620a84615f3eaefadea1c73c0fe468b931c
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Fri Oct 2 09:17:15 2009 +0200

    Avoid crash if only one client is eligible for cycling

 src/cycle.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/cycle.c b/src/cycle.c
index 31b6500..7ab54f4 100644
--- a/src/cycle.c
+++ b/src/cycle.c
@@ -331,6 +331,11 @@ clientCycle (Client * c, XKeyEvent * ev)
     {
         selected = g_list_next (client_list);
     }
+    if (!selected)
+    {
+        /* Only one element in list */
+        selected = client_list;
+    }
     passdata.wireframe = None;
 
     TRACE ("entering cycle loop");



More information about the Xfce4-commits mailing list