From f93a616beeb92b0449212a9abb8a54dcfb87f160 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sun, 24 Feb 2008 01:05:27 +0000 Subject: [PATCH] (x_set_offset): Don't change the gravity if CHANGE_GRAVITY is -1. --- src/xterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xterm.c b/src/xterm.c index 5dd1585eda1..6c16bd89ce6 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -8700,7 +8700,7 @@ x_set_offset (f, xoff, yoff, change_gravity) { int modified_top, modified_left; - if (change_gravity != 0) + if (change_gravity > 0) { FRAME_X_OUTPUT (f)->left_before_move = f->left_pos; FRAME_X_OUTPUT (f)->top_before_move = f->top_pos; -- 2.39.5