[Xfce4-commits] <xfwm4:libxfce4ui> Avoid crash if only one client is eligible for cycling
Olivier Fourdan
noreply at xfce.org
Sun Jan 10 10:24:24 CET 2010
Updating branch refs/heads/libxfce4ui
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