lock the position/size of maximized windows
This commit is contained in:
parent
8758271498
commit
ba2c6a23df
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue