force the resize popup to be on-screen (not negative position)
Dana Jansens danakj@orodu.net
2 files changed,
6 insertions(+),
1 deletions(-)
M
openbox/config.c
→
openbox/config.c
@@ -675,6 +675,11 @@ &config_resize_popup_fixed.x);
if ((n2 = parse_find_node("y", n->children))) config_parse_gravity_coord(doc, n2, &config_resize_popup_fixed.y); + + config_resize_popup_fixed.x.pos = + MAX(config_resize_popup_fixed.x.pos, 0); + config_resize_popup_fixed.y.pos = + MAX(config_resize_popup_fixed.y.pos, 0); } } }
M
openbox/geom.h
→
openbox/geom.h
@@ -23,7 +23,7 @@
#include <glib.h> typedef struct _GravityCoord { - int pos; + gint pos; gboolean center; gboolean opposite; } GravityCoord;