From ba2c6a23df7c32cb54ebb2cace71dd1334e25ff4 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 20 Mar 2003 21:09:56 +0000 Subject: [PATCH] lock the position/size of maximized windows --- openbox/client.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; -- 2.45.2