all repos — openbox @ acc6124682c674e16b896bfe6b54c94f12f4cb87

openbox fork - make it a bit more like ryudo

limit the size popup to the screen, maybe this doesnt work with xinerama though?
Mikael Magnusson mikachu@comhem.se
commit

acc6124682c674e16b896bfe6b54c94f12f4cb87

parent

335e8acbfc5d2824f1fd2cb67a5add8e1ed40b06

1 files changed, 7 insertions(+), 0 deletions(-)

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

@@ -105,6 +105,10 @@ gint l, t, r, b;

gint x, y, w, h; gint textw, texth; gint iconw; + Rect *area; /* won't go outside this */ + + area = screen_physical_area_monitor(0); /* XXX i'm guessing this + is wrong for xinerama? */ RrMargins(self->a_bg, &l, &t, &r, &b);

@@ -169,6 +173,9 @@ case SouthEastGravity:

y -= h; break; } + + x=MAX(MIN(x, area->width-w),0); + y=MAX(MIN(y, area->height-h),0); /* set the windows/appearances up */ XMoveResizeWindow(ob_display, self->bg, x, y, w, h);