move and resize the plate window at the same time
This commit is contained in:
parent
0a9ef7591f
commit
2487e74d40
1 changed files with 9 additions and 9 deletions
|
@ -475,14 +475,14 @@ void frame_adjust_area(ObFrame *self)
|
||||||
self->innersize.top + self->innersize.bottom +
|
self->innersize.top + self->innersize.bottom +
|
||||||
self->frame.client->area.height));
|
self->frame.client->area.height));
|
||||||
|
|
||||||
/* do this in two steps because clients whose gravity is set to
|
/* move and resize the plate */
|
||||||
'Static' don't end up getting moved at all with an XMoveResizeWindow */
|
XMoveResizeWindow(ob_display, self->frame.plate,
|
||||||
XMoveWindow(ob_display, self->frame.plate,
|
self->innersize.left - self->cbwidth,
|
||||||
self->innersize.left - self->cbwidth,
|
self->innersize.top - self->cbwidth,
|
||||||
self->innersize.top - self->cbwidth);
|
self->frame.client->area.width,
|
||||||
XResizeWindow(ob_display, self->frame.plate,
|
self->frame.client->area.height);
|
||||||
self->frame.client->area.width,
|
/* when the client has StaticGravity, it likes to move around. */
|
||||||
self->frame.client->area.height);
|
XMoveWindow(ob_display, self->frame.client->window, 0, 0);
|
||||||
|
|
||||||
STRUT_SET(self->frame.size,
|
STRUT_SET(self->frame.size,
|
||||||
self->innersize.left + self->bwidth,
|
self->innersize.left + self->bwidth,
|
||||||
|
@ -497,7 +497,7 @@ void frame_adjust_area(ObFrame *self)
|
||||||
self->frame.size.top + self->frame.size.bottom);
|
self->frame.size.top + self->frame.size.bottom);
|
||||||
|
|
||||||
render(self);
|
render(self);
|
||||||
|
|
||||||
frame_adjust_shape(self);
|
frame_adjust_shape(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue