summaryrefslogtreecommitdiff
path: root/openbox/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/client.c')
-rw-r--r--openbox/client.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 3fe3faa1..83ea46f1 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -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);
}