let you put windows with the titlebar off screen.. for mikachu. but also don't let applications put themselves under the struts!
Dana Jansens danakj@orodu.net
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
openbox/client.c
→
openbox/client.c
@@ -721,8 +721,8 @@ *y + self->frame->area.height/10 >= a->y + a->height - 1)
*y = a->y + a->height - self->frame->area.height/10; if (!self->strut.left && *x + self->frame->area.width*9/10 - 1 < a->x) *x = a->x - self->frame->area.width*9/10; - if (!self->strut.top && *y < a->y) - *y = a->y; + if (!self->strut.top && *y + self->frame->area.height*9/10 - 1 < a->y) + *y = a->y - self->frame->area.width*9/10; } /* This here doesn't let windows even a pixel outside the screen,@@ -735,7 +735,7 @@ if (rude) {
/* avoid the xinerama monitor divide while we're at it, * remember to fix the placement stuff to avoid it also and * then remove this XXX */ - a = screen_physical_area_monitor(client_monitor(self)); + a = screen_area(self->desktop); /* dont let windows map into the strut unless they are bigger than the available area */ if (w <= a->width) {