find_on_screen takes client width/height, not frame
This commit is contained in:
parent
88ac9ee76f
commit
9c19d7f677
1 changed files with 4 additions and 4 deletions
|
@ -347,8 +347,8 @@ void client_manage(Window window)
|
||||||
|
|
||||||
/* make sure the window is visible. */
|
/* make sure the window is visible. */
|
||||||
client_find_onscreen(self, &newx, &newy,
|
client_find_onscreen(self, &newx, &newy,
|
||||||
self->frame->area.width,
|
self->area.width,
|
||||||
self->frame->area.height,
|
self->area.height,
|
||||||
/* non-normal clients has less rules, and
|
/* non-normal clients has less rules, and
|
||||||
windows that are being restored from a
|
windows that are being restored from a
|
||||||
session do also. we can assume you want
|
session do also. we can assume you want
|
||||||
|
@ -742,8 +742,8 @@ void client_move_onscreen(ObClient *self, gboolean rude)
|
||||||
gint x = self->area.x;
|
gint x = self->area.x;
|
||||||
gint y = self->area.y;
|
gint y = self->area.y;
|
||||||
if (client_find_onscreen(self, &x, &y,
|
if (client_find_onscreen(self, &x, &y,
|
||||||
self->frame->area.width,
|
self->area.width,
|
||||||
self->frame->area.height, rude)) {
|
self->area.height, rude)) {
|
||||||
client_move(self, x, y);
|
client_move(self, x, y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue