aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index 714b3ac..0830b02 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -1440,6 +1440,16 @@ static struct frame *create_frame(struct presentation *p, double x, double y,
parent = p->selection[0];
}
+ if ( w < 0.0 ) {
+ x += w;
+ w = -w;
+ }
+
+ if ( h < 0.0 ) {
+ y += h;
+ h = -h;
+ }
+
fr = add_subframe(parent);
fr->sc = NULL;
fr->style = default_style(p->ss);