things are in the same app only if they are in the same layer wip/restack github/wip/restack origin/wip/restack
authorDana Jansens <danakj@orodu.net>
Tue, 22 Dec 2009 16:39:03 +0000 (11:39 -0500)
committerDana Jansens <danakj@orodu.net>
Tue, 22 Dec 2009 16:44:53 +0000 (11:44 -0500)
openbox/client.c

index 434e47387ac12401ca4b98201850b8ac30460a8e..9a406cdd33b8cf33452030b24ddde3a5d6f8039e 100644 (file)
@@ -3520,7 +3520,8 @@ gboolean client_is_in_application(ObClient *self, ObClient *app)
          (self->desktop == DESKTOP_ALL &&
           app->desktop == screen_desktop) ||
          (app->desktop == DESKTOP_ALL &&
-          self->desktop == screen_desktop));
+          self->desktop == screen_desktop)) &&
+        self->layer == app->layer;
 }
 
 gboolean client_is_direct_child(ObClient *parent, ObClient *child)