all repos — openbox @ 9c19d7f677e17b458f7fad1cdd220ffb2ac51ba1

openbox fork - make it a bit more like ryudo

find_on_screen takes client width/height, not frame
Dana Jansens danakj@orodu.net
commit

9c19d7f677e17b458f7fad1cdd220ffb2ac51ba1

parent

88ac9ee76f1673978521e2bfcbfb284d8ae78734

1 files changed, 4 insertions(+), 4 deletions(-)

jump to
M openbox/client.copenbox/client.c

@@ -347,8 +347,8 @@ transient = place_client(self, &newx, &newy, settings);

/* make sure the window is visible. */ client_find_onscreen(self, &newx, &newy, - self->frame->area.width, - self->frame->area.height, + self->area.width, + self->area.height, /* non-normal clients has less rules, and windows that are being restored from a session do also. we can assume you want

@@ -742,8 +742,8 @@ {

gint x = self->area.x; gint y = self->area.y; if (client_find_onscreen(self, &x, &y, - self->frame->area.width, - self->frame->area.height, rude)) { + self->area.width, + self->area.height, rude)) { client_move(self, x, y); } }