test some stuff
This commit is contained in:
parent
943dd68152
commit
ef042d220b
1 changed files with 13 additions and 6 deletions
|
@ -607,9 +607,9 @@ gboolean client_find_onscreen(ObClient *self, gint *x, gint *y, gint w, gint h,
|
||||||
would be */
|
would be */
|
||||||
|
|
||||||
/* XXX watch for xinerama dead areas */
|
/* XXX watch for xinerama dead areas */
|
||||||
|
/* This makes sure windows aren't entirely outside of the screen so you
|
||||||
/* a = screen_area(self->desktop); */
|
* can't see them at all */
|
||||||
a = screen_physical_area_monitor(client_monitor(self));
|
a = screen_area(self->desktop);
|
||||||
if (client_normal(self)) {
|
if (client_normal(self)) {
|
||||||
if (!self->strut.right && *x >= a->x + a->width - 1)
|
if (!self->strut.right && *x >= a->x + a->width - 1)
|
||||||
*x = a->x + a->width - self->frame->area.width;
|
*x = a->x + a->width - self->frame->area.width;
|
||||||
|
@ -621,9 +621,16 @@ gboolean client_find_onscreen(ObClient *self, gint *x, gint *y, gint w, gint h,
|
||||||
*y = a->y;
|
*y = a->y;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rude) {
|
/* This here doesn't let windows even a pixel outside the screen,
|
||||||
/* this is my MOZILLA BITCHSLAP. oh ya it fucking feels good.
|
* not applied to all windows. Not sure if it's going to stay at all.
|
||||||
Java can suck it too. */
|
* I wonder if disabling this will break struts somehow? Let's find out. */
|
||||||
|
if (0 && 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));
|
||||||
|
/* this is ben's MOZILLA BITCHSLAP. "oh ya it fucking feels good.
|
||||||
|
Java can suck it too." */
|
||||||
|
|
||||||
/* dont let windows map/move into the strut unless they
|
/* dont let windows map/move into the strut unless they
|
||||||
are bigger than the available area */
|
are bigger than the available area */
|
||||||
|
|
Loading…
Reference in a new issue