]> Dogcows Code - chaz/openbox/commitdiff
fix if action's "focused"
authorDana Jansens <danakj@orodu.net>
Wed, 11 Jul 2007 21:26:38 +0000 (21:26 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 11 Jul 2007 21:26:38 +0000 (21:26 +0000)
openbox/actions/if.c

index a5d5f0bbc8a147ab8499527212c1f256b7e460a6..25d899c1cf89958f2154bd6a141ac6fe3d5597e7 100644 (file)
@@ -128,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.023362 seconds and 4 git commands to generate.