all repos — openbox @ b317f0140398308fce5fbd262ad99a290b54a449

openbox fork - make it a bit more like ryudo

dont impose staying on-screen for non-normal windows like kicker
Dana Jansens danakj@orodu.net
commit

b317f0140398308fce5fbd262ad99a290b54a449

parent

eeebd3e43f24c812c77d8453d01279ae9f5fca14

1 files changed, 10 insertions(+), 8 deletions(-)

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

@@ -551,14 +551,16 @@

/* XXX watch for xinerama dead areas */ a = screen_area(self->desktop); - if (!self->strut.right && *x >= a->x + a->width - 1) - *x = a->x + a->width - self->frame->area.width; - if (!self->strut.bottom && *y >= a->y + a->height - 1) - *y = a->y + a->height - self->frame->area.height; - if (!self->strut.left && *x + self->frame->area.width - 1 < a->x) - *x = a->x; - if (!self->strut.top && *y + self->frame->area.height - 1 < a->y) - *y = a->y; + if (client_normal(self)) { + if (!self->strut.right && *x >= a->x + a->width - 1) + *x = a->x + a->width - self->frame->area.width; + if (!self->strut.bottom && *y >= a->y + a->height - 1) + *y = a->y + a->height - self->frame->area.height; + if (!self->strut.left && *x + self->frame->area.width - 1 < a->x) + *x = a->x; + if (!self->strut.top && *y + self->frame->area.height - 1 < a->y) + *y = a->y; + } if (rude) { /* this is my MOZILLA BITCHSLAP. oh ya it fucking feels good.