Don't crash on Next/PreviousWindow or dirfocus and the window went away.
authorMikael Magnusson <mikachu@comhem.se>
Wed, 20 Feb 2008 16:08:18 +0000 (17:08 +0100)
committerMikael Magnusson <mikachu@comhem.se>
Sat, 8 Mar 2008 16:21:36 +0000 (17:21 +0100)
openbox/actions/cyclewindows.c
openbox/actions/directionalwindows.c

index 5354f087c55254f5fdd5fd700a63e88a93ac6cc7..ca2f59d043401a046cadb8f902078be04eb48658 100644 (file)
@@ -4,6 +4,7 @@
 #include "openbox/event.h"
 #include "openbox/focus_cycle.h"
 #include "openbox/openbox.h"
+#include "openbox/client.h"
 #include "gettext.h"
 
 typedef struct {
@@ -193,7 +194,7 @@ static void end_cycle(gboolean cancel, guint state, Options *o)
                      TRUE, cancel);
     cycling = FALSE;
 
-    if (ft)
+    if (g_list_find(client_list, ft))
         actions_run_acts(o->actions, OB_USER_ACTION_KEYBOARD_KEY,
                          state, -1, -1, 0, OB_FRAME_CONTEXT_NONE, ft);
 
index d3633d507356aff655be907e9414c3772e16954c..d8e5c47e40e8bf140744cdfae3be8e4b7eeade99 100644 (file)
@@ -5,6 +5,7 @@
 #include "openbox/focus_cycle.h"
 #include "openbox/openbox.h"
 #include "openbox/misc.h"
+#include "openbox/client.h"
 #include "gettext.h"
 
 typedef struct {
@@ -210,7 +211,7 @@ static void end_cycle(gboolean cancel, guint state, Options *o)
                                  TRUE, cancel);
     cycling = FALSE;
 
-    if (ft)
+    if (g_list_find(client_list, ft))
         actions_run_acts(o->actions, OB_USER_ACTION_KEYBOARD_KEY,
                          state, -1, -1, 0, OB_FRAME_CONTEXT_NONE, ft);