From e02f788409393a701bbb26ebbb01a82f085f2e96 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 23 Mar 2010 17:00:01 -0400 Subject: [PATCH] allow non-normal windows to go to 0,0. and remove a debugging g_print --- openbox/client.c | 2 ++ openbox/event.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/openbox/client.c b/openbox/client.c index e64fd49c..3e10a9ab 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -335,6 +335,8 @@ void client_manage(Window window, ObPrompt *prompt) /* watch for buggy apps that ask to be placed at (0,0) when there is a strut there */ if (!obplaced && place.x == 0 && place.y == 0 && + /* non-normal windows are allowed */ + client_normal(self) && /* oldschool fullscreen windows are allowed */ !client_is_oldfullscreen(self, &place)) { diff --git a/openbox/event.c b/openbox/event.c index c4af7b23..b3cdf4dc 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1253,8 +1253,9 @@ static void event_handle_client(ObClient *client, XEvent *e) XXX remove this some day...that would be nice. but really unexpected from Sun Microsystems. */ - g_print("x %d y %d grav %d %d\n", x, y, client->gravity, NorthWestGravity); - if (x == 0 && y == 0 && client->gravity == NorthWestGravity) { + if (x == 0 && y == 0 && client->gravity == NorthWestGravity && + client_normal(client)) + { const Rect to = { x, y, w, h }; /* oldschool fullscreen windows are allowed */ -- 2.45.2