dont impose staying on-screen for non-normal windows like kicker

This commit is contained in:
Dana Jansens 2003-09-14 18:35:21 +00:00
parent eeebd3e43f
commit b317f01403

View file

@ -551,6 +551,7 @@ gboolean client_find_onscreen(ObClient *self, int *x, int *y, int w, int h,
/* XXX watch for xinerama dead areas */
a = screen_area(self->desktop);
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)
@ -559,6 +560,7 @@ gboolean client_find_onscreen(ObClient *self, int *x, int *y, int w, int h,
*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.