]> Dogcows Code - chaz/openbox/blobdiff - openbox/actions/if.c
*^^*
[chaz/openbox] / openbox / actions / if.c
index 0b9f842a92befed8b746327eee5fb963d7e66c26..25d899c1cf89958f2154bd6a141ac6fe3d5597e7 100644 (file)
@@ -3,6 +3,7 @@
 #include "openbox/client.h"
 #include "openbox/frame.h"
 #include "openbox/screen.h"
+#include "openbox/focus.h"
 #include <glib.h>
 
 typedef struct {
@@ -127,8 +128,8 @@ static gboolean run_func(ObActionsData *data, gpointer options)
         (!o->maxvert_off || (c && !c->max_vert)) &&
         (!o->maxfull_on || (c && c->max_vert && c->max_horz)) &&
         (!o->maxfull_off || (c && !(c->max_vert && c->max_horz))) &&
-        (!o->focused || (c && !(c == focus_client))) &&
-        (!o->unfocused || (c && !(c != focus_client))))
+        (!o->focused || (c && (c == focus_client))) &&
+        (!o->unfocused || (c && !(c == focus_client))))
     {
         acts = o->thenacts;
     }
This page took 0.023757 seconds and 4 git commands to generate.