From 52c345c3002fe7bb134d35cb5446fa2601ff192f Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Sun, 6 Feb 2005 01:43:37 +0000 Subject: try moving the move_onscreen with the rude into the place routine so it only gets called if a window doesn't specify a position --- openbox/place.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'openbox/place.c') diff --git a/openbox/place.c b/openbox/place.c index 6669a28e..86af6b9d 100644 --- a/openbox/place.c +++ b/openbox/place.c @@ -385,6 +385,15 @@ void place_client(ObClient *client, gint *x, gint *y) place_smart(client, x, y, SMART_FOCUSED) || place_random(client, x, y))) { + /* make sure the window is visible. */ + client_find_onscreen(client, x, y, + client->frame->area.width, + client->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(client) && !client->session); /* get where the client should be */ frame_frame_gravity(client->frame, x, y); } else -- cgit v1.2.3