summaryrefslogtreecommitdiff
path: root/openbox/client.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2010-03-01 15:55:27 -0500
committerDana Jansens <danakj@orodu.net>2010-03-01 16:32:23 -0500
commit28df6162a9fbca4544e8f384d3fdae70870f531a (patch)
tree987a2162754a394b98e94dfe41bca3bb9e793b47 /openbox/client.c
parentcfce98840ac138675971f8421032da9e0030ecc7 (diff)
when an app tries to move to 0,0 and there is a strut there (java swing!), move it to inside the strut instead (unless it is an oldschool fullscreen app)
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);
}