all repos — openbox @ 3f40d6e7622df1f8d388e70e3f0ad0f6e9435948

openbox fork - make it a bit more like ryudo

more testing
Mikael Magnusson mikachu@comhem.se
commit

3f40d6e7622df1f8d388e70e3f0ad0f6e9435948

parent

64772cc6d85ba852dbdae8f1b148db1215bbc7d8

2 files changed, 4 insertions(+), 7 deletions(-)

jump to
M openbox/client.copenbox/client.c

@@ -603,7 +603,8 @@

/* XXX watch for xinerama dead areas */ /* This makes sure windows aren't entirely outside of the screen so you * can't see them at all */ - a = screen_area(self->desktop); + //a = screen_area(self->desktop); + a = screen_physical_area_monitor(client_monitor(self)); if (client_normal(self)) { if (!self->strut.right && *x >= a->x + a->width - 1) *x = a->x + a->width - self->frame->area.width;

@@ -619,10 +620,6 @@ /* 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 (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." */
M openbox/place.copenbox/place.c

@@ -324,9 +324,9 @@ r = area->x + area->width - client->frame->area.width;

b = area->y + area->height - client->frame->area.height; *x = px - client->area.width / 2 - client->frame->size.left; -// *x = MIN(MAX(*x, l), r); + *x = MIN(MAX(*x, l), r); *y = py - client->area.height / 2 - client->frame->size.top; -// *y = MIN(MAX(*y, t), b); + *y = MIN(MAX(*y, t), b); return TRUE; }