diff options
| author | Mikael Magnusson <mikachu@comhem.se> | 2005-02-06 02:18:06 +0000 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2005-02-06 02:18:06 +0000 |
| commit | ac416fd27e5e620aa833f7a140febf7a1d46abf3 (patch) | |
| tree | 3bbb777e6b5ccfae7980bafcb6af8ca6d3b84375 /openbox/place.c | |
| parent | 3f40d6e7622df1f8d388e70e3f0ad0f6e9435948 (diff) | |
testing failed, hopefully this is reverting to the right place
Diffstat (limited to 'openbox/place.c')
| -rw-r--r-- | openbox/place.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/openbox/place.c b/openbox/place.c index 67a1631b..6669a28e 100644 --- a/openbox/place.c +++ b/openbox/place.c @@ -375,13 +375,9 @@ static gboolean place_transient(ObClient *client, gint *x, gint *y) void place_client(ObClient *client, gint *x, gint *y) { - /* 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 */ - gint rude = client_normal(client) && !client->session; if (client->positioned) - rude = 0; - else if (place_transient(client, x, y) || + return; + if (place_transient(client, x, y) || ((config_place_policy == OB_PLACE_POLICY_MOUSE) ? place_under_mouse(client, x, y) : place_smart(client, x, y, SMART_FULL) || @@ -393,9 +389,4 @@ void place_client(ObClient *client, gint *x, gint *y) frame_frame_gravity(client->frame, x, y); } else g_assert_not_reached(); /* the last one better succeed */ - /* make sure the window is visible. */ - client_find_onscreen(client, x, y, - client->frame->area.width, - client->frame->area.height, - rude); } |
