]> Dogcows Code - chaz/openbox/blobdiff - openbox/client.c
base rudeness on if they have a strut or not
[chaz/openbox] / openbox / client.c
index 70873a4377a889dc4b6cd7b701cf08f03f28a489..e0dc3f876761e0e8e67e7a670241cfd4e6a38949 100644 (file)
@@ -300,7 +300,9 @@ void client_manage(Window window)
     dispatch_client(Event_Client_New, self, 0, 0);
 
     /* make sure the window is visible */
-    client_move_onscreen(self, TRUE);
+    if (!(self->strut.left || self->strut.right ||
+          self->strut.top || self->strut.bottom))
+        client_move_onscreen(self, TRUE);
 
     screen_update_areas();
 
@@ -1346,8 +1348,11 @@ void client_update_strut(ObClient *self)
     if (!PROP_GETA32(self->window, net_wm_strut, cardinal, &data, &num)) {
        STRUT_SET(self->strut, 0, 0, 0, 0);
     } else {
-        if (num == 4)
+        if (num == 4) {
+            g_message("new strut: %d %d %d %d",
+                      data[0], data[2], data[1], data[3]);
             STRUT_SET(self->strut, data[0], data[2], data[1], data[3]);
+        }
         else
             STRUT_SET(self->strut, 0, 0, 0, 0);
        g_free(data);
This page took 0.021641 seconds and 4 git commands to generate.