From ef042d220b1d5ff9752579bf6cfa41431d1a67ad Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Sun, 6 Feb 2005 00:50:43 +0000 Subject: [PATCH] test some stuff --- openbox/client.c | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/openbox/client.c b/openbox/client.c index d5069b0a..e37c1d24 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -607,9 +607,9 @@ gboolean client_find_onscreen(ObClient *self, gint *x, gint *y, gint w, gint h, would be */ /* XXX watch for xinerama dead areas */ - - /* a = screen_area(self->desktop); */ - a = screen_physical_area_monitor(client_monitor(self)); + /* This makes sure windows aren't entirely outside of the screen so you + * can't see them at all */ + 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; @@ -621,9 +621,16 @@ gboolean client_find_onscreen(ObClient *self, gint *x, gint *y, gint w, gint h, *y = a->y; } - if (rude) { - /* this is my MOZILLA BITCHSLAP. oh ya it fucking feels good. - Java can suck it too. */ + /* This here doesn't let windows even a pixel outside the screen, + * not applied to all windows. Not sure if it's going to stay at all. + * 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 are bigger than the available area */ -- 2.45.2