]> Dogcows Code - chaz/openbox/commitdiff
more cleverness for window placing.
authorDana Jansens <danakj@orodu.net>
Sat, 10 Mar 2007 01:08:19 +0000 (01:08 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 10 Mar 2007 01:08:19 +0000 (01:08 +0000)
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..

openbox/client.c

index bf5c8bec06f1aed275910664657e82b6c443390a..732f031f205fd7b5a357d28faa69c0767cf5554c 100644 (file)
@@ -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) {
This page took 0.029507 seconds and 4 git commands to generate.