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 /openbox/config.c | |
| parent | 9c729986844a65545f7736d053359ad24d2df120 (diff) | |
force the resize popup to be on-screen (not negative position)
Diffstat (limited to 'openbox/config.c')
| -rw-r--r-- | openbox/config.c | 5 |
1 files changed, 5 insertions, 0 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); } } } |
