]> Dogcows Code - chaz/openbox/commitdiff
base rudeness on if they have a strut or not
authorDana Jansens <danakj@orodu.net>
Mon, 28 Jul 2003 19:56:52 +0000 (19:56 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 28 Jul 2003 19:56:52 +0000 (19:56 +0000)
openbox/client.c
openbox/event.c

index 878654628ee583f911485a6411b9a1f40efd6f68..e0dc3f876761e0e8e67e7a670241cfd4e6a38949 100644 (file)
@@ -300,7 +300,8 @@ void client_manage(Window window)
     dispatch_client(Event_Client_New, self, 0, 0);
 
     /* make sure the window is visible */
-    if (client_normal(self))
+    if (!(self->strut.left || self->strut.right ||
+          self->strut.top || self->strut.bottom))
         client_move_onscreen(self, TRUE);
 
     screen_update_areas();
index 2a705e50501bdd475689e3dccb7880af895e6b20..08240ff260359f3e722e9e2d4967d155abb2f3de 100644 (file)
@@ -776,7 +776,8 @@ static void event_handle_client(ObClient *client, XEvent *e)
            h = (e->xconfigurerequest.value_mask & CWHeight) ?
                e->xconfigurerequest.height : client->area.height;
 
-            if (client_normal(client)) {
+            if (!(client->strut.left || client->strut.right ||
+                  client->strut.top || client->strut.bottom)) {
                 int newx = x;
                 int newy = y;
                 client_find_onscreen(client, &newx, &newy, w, h, TRUE);
@@ -974,7 +975,8 @@ static void event_handle_client(ObClient *client, XEvent *e)
                 h = client->area.y;
             client->gravity = tmpg;
 
-            if (client_normal(client)) {
+            if (!(client->strut.left || client->strut.right ||
+                  client->strut.top || client->strut.bottom)) {
                 int newx = x;
                 int newy = y;
                 client_find_onscreen(client, &newx, &newy, w, h, TRUE);
This page took 0.031473 seconds and 4 git commands to generate.