diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-02-10 18:30:07 -0500 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2008-02-14 19:40:02 +0100 |
| commit | 91a1b089097cb3ba66f779df80fa7a51490aa785 (patch) | |
| tree | 55523e995fc51228147da0f3ed1b30d266c9348c | |
| parent | 9c729986844a65545f7736d053359ad24d2df120 (diff) | |
force the resize popup to be on-screen (not negative position)
| -rw-r--r-- | openbox/config.c | 5 | ||||
| -rw-r--r-- | openbox/geom.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/openbox/config.c b/openbox/config.c index 673af4bd..e1954a79 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -675,6 +675,11 @@ static void parse_resize(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, 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); } } } diff --git a/openbox/geom.h b/openbox/geom.h index bdcd3c55..7c5ee32e 100644 --- a/openbox/geom.h +++ b/openbox/geom.h @@ -23,7 +23,7 @@ #include <glib.h> typedef struct _GravityCoord { - int pos; + gint pos; gboolean center; gboolean opposite; } GravityCoord; |
