force the resize popup to be on-screen (not negative position)

This commit is contained in:
Dana Jansens 2008-02-10 18:30:07 -05:00 committed by Mikael Magnusson
parent 9c72998684
commit 91a1b08909
2 changed files with 6 additions and 1 deletions

View file

@ -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);
}
}
}

View file

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