summaryrefslogtreecommitdiff
path: root/openbox/client.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-03-10 01:08:19 +0000
committerDana Jansens <danakj@orodu.net>2007-03-10 01:08:19 +0000
commit4fa19b598554d8cd02307745d2fe7809cc26a064 (patch)
tree81771ac9265cab892ae398245b977667163ba25a /openbox/client.c
parentae246097a5cde4a72f1e8558436ce4aae455d164 (diff)
more cleverness for window placing.
make sure its 10% on the screen in some direction always.. but if the application is placing itself, make sure its on the screen entirely, and also put it entirely on one monitor if you have xinerama. if it's bigger than the monitor's space though, it won't do anything with it..
Diffstat (limited to 'openbox/client.c')
-rw-r--r--openbox/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbox/client.c b/openbox/client.c
index bf5c8bec..732f031f 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -735,7 +735,7 @@ gboolean client_find_onscreen(ObClient *self, gint *x, gint *y, gint w, gint h,
/* avoid the xinerama monitor divide while we're at it,
* remember to fix the placement stuff to avoid it also and
* then remove this XXX */
- a = screen_area(self->desktop);
+ a = screen_area_monitor(self->desktop, client_monitor(self));
/* dont let windows map into the strut unless they
are bigger than the available area */
if (w <= a->width) {