]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_set_offset): Don't change the gravity if CHANGE_GRAVITY is -1.
authorChong Yidong <cyd@stupidchicken.com>
Sun, 24 Feb 2008 01:04:51 +0000 (01:04 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sun, 24 Feb 2008 01:04:51 +0000 (01:04 +0000)
src/xterm.c

index 96638c2ee5f45fefd061c631b1f78192775418eb..3b625b0d662ca628ab37ec8cb69d182965d11d56 100644 (file)
@@ -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;