summaryrefslogtreecommitdiff
path: root/openbox/event.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2010-03-23 17:00:01 -0400
committerDana Jansens <danakj@orodu.net>2010-03-25 18:11:13 -0400
commite02f788409393a701bbb26ebbb01a82f085f2e96 (patch)
treeb63195555c095932d2c78a51863e9f76db8b37cc /openbox/event.c
parent15d7f7103edfa77ff055acbe181099db358b6982 (diff)
allow non-normal windows to go to 0,0. and remove a debugging g_print
Diffstat (limited to 'openbox/event.c')
-rw-r--r--openbox/event.c5
1 files changed, 3 insertions, 2 deletions
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 */