all repos — openbox @ 91a1b089097cb3ba66f779df80fa7a51490aa785

openbox fork - make it a bit more like ryudo

force the resize popup to be on-screen (not negative position)
Dana Jansens danakj@orodu.net
commit

91a1b089097cb3ba66f779df80fa7a51490aa785

parent

9c729986844a65545f7736d053359ad24d2df120

2 files changed, 6 insertions(+), 1 deletions(-)

jump to
M openbox/config.copenbox/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.hopenbox/geom.h

@@ -23,7 +23,7 @@

#include <glib.h> typedef struct _GravityCoord { - int pos; + gint pos; gboolean center; gboolean opposite; } GravityCoord;