]> Dogcows Code - chaz/openbox/commitdiff
use the struts to size the window correctly for maximized windows
authorDana Jansens <danakj@orodu.net>
Fri, 28 Mar 2003 03:18:08 +0000 (03:18 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 28 Mar 2003 03:18:08 +0000 (03:18 +0000)
openbox/client.c

index 2e6862434cbc76988effd56bb9f1b7464fbd352b..6c1a6adda468305a22c3ceb6533f628238fe8321 100644 (file)
@@ -1326,13 +1326,11 @@ void client_configure(Client *self, Corner anchor, int x, int y, int w, int h,
         /* set the size and position if maximized */
         if (self->max_horz) {
             x = screen_area(self->desktop)->x - self->frame->size.left;
-            w = screen_area(self->desktop)->x +
-                screen_area(self->desktop)->width;
+            w = screen_area(self->desktop)->width;
         }
         if (self->max_vert) {
             y = screen_area(self->desktop)->y;
-            h = screen_area(self->desktop)->y +
-                screen_area(self->desktop)->height -
+            h = screen_area(self->desktop)->height -
                 self->frame->size.top - self->frame->size.bottom;
         }
     }
This page took 0.029077 seconds and 4 git commands to generate.