summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2008-02-24 01:04:51 +0000
committerChong Yidong <cyd@stupidchicken.com>2008-02-24 01:04:51 +0000
commit57b8e96ad5fafc0e82e8560e2fdb49e0dd33476c (patch)
tree42c46d737440299ff83ab9a51d5463bd10adc63d
parent41cac0d7e8185015d79d120a353c52c79a4de29e (diff)
downloademacs-57b8e96ad5fafc0e82e8560e2fdb49e0dd33476c.tar.gz
(x_set_offset): Don't change the gravity if CHANGE_GRAVITY is -1.
-rw-r--r--src/xterm.c2
1 files changed, 1 insertions, 1 deletions
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;