]> Dogcows Code - chaz/openbox/blobdiff - openbox/client.c
when an app tries to move to 0,0 and there is a strut there (java swing!), move it...
[chaz/openbox] / openbox / client.c
index 3fe3faa189cfb5b94e18a2375dbdb4ce4e818f89..83ea46f15d9a68402559f9002458d6496c4f72b9 100644 (file)
@@ -345,9 +345,11 @@ void client_manage(Window window, ObPrompt *prompt)
             Rect *r;
 
             r = screen_area(self->desktop, SCREEN_AREA_ALL_MONITORS, NULL);
-            place.x = r->x;
-            place.y = r->y;
-            ob_debug("Moving buggy app from (0,0) to (%d,%d)", r->x, r->y);
+            if (r->x || r->y) {
+                place.x = r->x;
+                place.y = r->y;
+                ob_debug("Moving buggy app from (0,0) to (%d,%d)", r->x, r->y);
+            }
             g_slice_free(Rect, r);
         }
 
This page took 0.022767 seconds and 4 git commands to generate.