]> Dogcows Code - chaz/openbox/commitdiff
test
authorMikael Magnusson <mikachu@comhem.se>
Sun, 6 Feb 2005 01:52:15 +0000 (01:52 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Sun, 6 Feb 2005 01:52:15 +0000 (01:52 +0000)
openbox/place.c

index 86af6b9d78a7815597f734be8aa2637da12542e9..a098921d8792bd1b0a0e4a737a7df8109cac14c8 100644 (file)
@@ -324,9 +324,9 @@ static gboolean place_under_mouse(ObClient *client, gint *x, gint *y)
     b = area->y + area->height - client->frame->area.height;
 
     *x = px - client->area.width / 2 - client->frame->size.left;
-    *x = MIN(MAX(*x, l), r);
+//    *x = MIN(MAX(*x, l), r);
     *y = py - client->area.height / 2 - client->frame->size.top;
-    *y = MIN(MAX(*y, t), b);
+//    *y = MIN(MAX(*y, t), b);
 
     return TRUE;
 }
@@ -375,8 +375,9 @@ static gboolean place_transient(ObClient *client, gint *x, gint *y)
 
 void place_client(ObClient *client, gint *x, gint *y)
 {
+    gint rude = 1;
     if (client->positioned)
-        return;
+        rude = 0;
     if (place_transient(client, x, y)             ||
         ((config_place_policy == OB_PLACE_POLICY_MOUSE) ?
          place_under_mouse(client, x, y) :
This page took 0.026699 seconds and 4 git commands to generate.