dont impose staying on-screen for non-normal windows like kicker
This commit is contained in:
parent
eeebd3e43f
commit
b317f01403
1 changed files with 10 additions and 8 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue