lock the position/size of maximized windows

This commit is contained in:
Dana Jansens 2003-03-20 21:09:56 +00:00
parent 8758271498
commit ba2c6a23df

View 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;