From: Dana Jansens Date: Thu, 20 Mar 2003 21:09:56 +0000 (+0000) Subject: lock the position/size of maximized windows X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=ba2c6a23df7c32cb54ebb2cace71dd1334e25ff4;p=chaz%2Fopenbox lock the position/size of maximized windows --- diff --git a/openbox/client.c b/openbox/client.c index 3100993b..df3ea84f 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -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;