all repos — openbox @ e02f788409393a701bbb26ebbb01a82f085f2e96

openbox fork - make it a bit more like ryudo

allow non-normal windows to go to 0,0.  and remove a debugging g_print
Dana Jansens danakj@orodu.net
commit

e02f788409393a701bbb26ebbb01a82f085f2e96

parent

15d7f7103edfa77ff055acbe181099db358b6982

2 files changed, 5 insertions(+), 2 deletions(-)

jump to
M openbox/client.copenbox/client.c

@@ -335,6 +335,8 @@

/* 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)) {
M openbox/event.copenbox/event.c

@@ -1253,8 +1253,9 @@

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 */