force the resize popup to be on-screen (not negative position)
This commit is contained in:
parent
9c72998684
commit
91a1b08909
2 changed files with 6 additions and 1 deletions
|
@ -675,6 +675,11 @@ static void parse_resize(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
|
||||||
if ((n2 = parse_find_node("y", n->children)))
|
if ((n2 = parse_find_node("y", n->children)))
|
||||||
config_parse_gravity_coord(doc, n2,
|
config_parse_gravity_coord(doc, n2,
|
||||||
&config_resize_popup_fixed.y);
|
&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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
typedef struct _GravityCoord {
|
typedef struct _GravityCoord {
|
||||||
int pos;
|
gint pos;
|
||||||
gboolean center;
|
gboolean center;
|
||||||
gboolean opposite;
|
gboolean opposite;
|
||||||
} GravityCoord;
|
} GravityCoord;
|
||||||
|
|
Loading…
Reference in a new issue