fix ooffice (and all stupid windows that use static gravity)
This commit is contained in:
parent
a5e6d35e12
commit
e8cd4c4d8d
1 changed files with 4 additions and 4 deletions
|
@ -741,10 +741,6 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
|
||||||
self->size.top + self->size.bottom));
|
self->size.top + self->size.bottom));
|
||||||
|
|
||||||
if ((moved || resized) && !fake) {
|
if ((moved || resized) && !fake) {
|
||||||
/* when the client has StaticGravity, it likes to move around. */
|
|
||||||
XMoveWindow(ob_display, self->client->window,
|
|
||||||
self->size.left, self->size.top);
|
|
||||||
|
|
||||||
/* find the new coordinates, done after setting the frame.size, for
|
/* find the new coordinates, done after setting the frame.size, for
|
||||||
frame_client_gravity. */
|
frame_client_gravity. */
|
||||||
self->area.x = self->client->area.x;
|
self->area.x = self->client->area.x;
|
||||||
|
@ -768,6 +764,10 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
|
||||||
self->area.width,
|
self->area.width,
|
||||||
self->area.height);
|
self->area.height);
|
||||||
|
|
||||||
|
/* when the client has StaticGravity, it likes to move around. */
|
||||||
|
XMoveWindow(ob_display, self->client->window,
|
||||||
|
self->size.left, self->size.top);
|
||||||
|
|
||||||
if (resized) {
|
if (resized) {
|
||||||
framerender_frame(self);
|
framerender_frame(self);
|
||||||
frame_adjust_shape(self);
|
frame_adjust_shape(self);
|
||||||
|
|
Loading…
Reference in a new issue