From 57b8e96ad5fafc0e82e8560e2fdb49e0dd33476c Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sun, 24 Feb 2008 01:04:51 +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 96638c2ee5f..3b625b0d662 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -8271,7 +8271,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.2