]> Dogcows Code - chaz/openbox/commitdiff
find_on_screen takes client width/height, not frame
authorDana Jansens <danakj@orodu.net>
Thu, 3 May 2007 03:18:56 +0000 (03:18 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 3 May 2007 03:18:56 +0000 (03:18 +0000)
openbox/client.c

index 600acfcc85e81759722ab65e1adf0525b8f38cc0..34ae4d868f5e770e7e58592f1ccd05cdb8967246 100644 (file)
@@ -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);
     }
 }
This page took 0.029129 seconds and 4 git commands to generate.