]> Dogcows Code - chaz/openbox/commitdiff
okay so that's why it didn't use move_onscreen
authorMikael Magnusson <mikachu@comhem.se>
Sun, 6 Feb 2005 01:16:00 +0000 (01:16 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Sun, 6 Feb 2005 01:16:00 +0000 (01:16 +0000)
openbox/client.c

index e37c1d241c22c66bbf969c49f2779ee736d5cc41..2b30bddf8686dad04f09a27e890e02c019b0f4cf 100644 (file)
@@ -344,14 +344,18 @@ void client_manage(Window window)
 
         place_client(self, &x, &y);
 
-        /* make sure the window is visible.
            
-           this is about the rude parameter:
-           non-normal clients has less rules, and
-           windows that are being restored from a session
-           do also. we can assume you want it back where
-           you saved it */
-        client_move_onscreen(self, client_normal(self) && !self->session);
+        /* make sure the window is visible. */
+        client_find_onscreen(self, &x, &y,
+                             self->frame->area.width,
+                             self->frame->area.height,
+                             /* non-normal clients has less rules, and
+                                windows that are being restored from a session
+                                do also. we can assume you want it back where
+                                you saved it */
+                             client_normal(self) && !self->session);
+        if (x != ox || y != oy)         
+            client_move(self, x, y);
     }
 
     keyboard_grab_for_client(self, TRUE);
This page took 0.029178 seconds and 4 git commands to generate.