]> Dogcows Code - chaz/openbox/commitdiff
lock the position/size of maximized windows
authorDana Jansens <danakj@orodu.net>
Thu, 20 Mar 2003 21:09:56 +0000 (21:09 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 20 Mar 2003 21:09:56 +0000 (21:09 +0000)
openbox/client.c

index 3100993b2747c909e865b3147e84cd9d92adc502..df3ea84f55b60b10aac72da7367c06e1985ec37b 100644 (file)
@@ -1281,6 +1281,16 @@ void client_configure(Client *self, Corner anchor, int x, int y, int w, int h,
 {
     gboolean moved = FALSE, resized = FALSE;
 
+    /* lock if maximized */
+    if (self->max_horz) {
+        x = self->area.x;
+        w = self->area.width;
+    }
+    if (self->max_vert) {
+        y = self->area.y;
+        h = self->area.height;
+    }
+
     w -= self->base_size.width;
     h -= self->base_size.height;
 
This page took 0.024595 seconds and 4 git commands to generate.