From 9c19d7f677e17b458f7fad1cdd220ffb2ac51ba1 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 3 May 2007 03:18:56 +0000 Subject: [PATCH] find_on_screen takes client width/height, not frame --- openbox/client.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openbox/client.c b/openbox/client.c index 600acfcc..34ae4d86 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -347,8 +347,8 @@ void client_manage(Window window) /* 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 @@ void client_move_onscreen(ObClient *self, gboolean rude) 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); } } -- 2.45.2