aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-05-06 00:59:24 +0000
committerRichard M. Stallman1994-05-06 00:59:24 +0000
commitac7ad037f7da2f3d63c94d66c45891acf5e43f90 (patch)
treea1995e2b06975916ddf662d5cb263c04f115eb82 /src
parent047688cbac14dc76bb4970c8ddefbca1d5a763e3 (diff)
downloademacs-ac7ad037f7da2f3d63c94d66c45891acf5e43f90.tar.gz
emacs-ac7ad037f7da2f3d63c94d66c45891acf5e43f90.zip
(x_set_offset): Update XNegative and YNegative for new pos.
(x_make_frame_invisible): Use XWithdrawWindow again.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c
index d0e368817dc..1ea7c4d0e7d 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -5148,7 +5148,6 @@ x_calc_absolute_position (f)
5148 - 2 * f->display.x->border_width - win_y 5148 - 2 * f->display.x->border_width - win_y
5149 - PIXEL_HEIGHT (f) 5149 - PIXEL_HEIGHT (f)
5150 + f->display.x->top_pos); 5150 + f->display.x->top_pos);
5151
5152#else /* ! defined (HAVE_X11) */ 5151#else /* ! defined (HAVE_X11) */
5153 WINDOWINFO_TYPE parentinfo; 5152 WINDOWINFO_TYPE parentinfo;
5154 5153
@@ -5171,6 +5170,11 @@ x_set_offset (f, xoff, yoff, change_gravity)
5171{ 5170{
5172 f->display.x->top_pos = yoff; 5171 f->display.x->top_pos = yoff;
5173 f->display.x->left_pos = xoff; 5172 f->display.x->left_pos = xoff;
5173 f->display.x->size_hint_flags &= ~ (XNegative | YNegative);
5174 if (xoff < 0)
5175 f->display.x->size_hint_flags |= XNegative;
5176 if (yoff < 0)
5177 f->display.x->size_hint_flags |= YNegative;
5174 x_calc_absolute_position (f); 5178 x_calc_absolute_position (f);
5175 5179
5176 BLOCK_INPUT; 5180 BLOCK_INPUT;
@@ -5455,7 +5459,8 @@ x_make_frame_invisible (f)
5455#ifdef HAVE_X11R4 5459#ifdef HAVE_X11R4
5456 5460
5457#ifdef USE_X_TOOLKIT 5461#ifdef USE_X_TOOLKIT
5458 XtPopdown (f->display.x->widget); 5462 if (! XWithdrawWindow (x_current_display, XtWindow (f->display.x->widget),
5463 DefaultScreen (x_current_display)))
5459#else /* not USE_X_TOOLKIT */ 5464#else /* not USE_X_TOOLKIT */
5460 if (! XWithdrawWindow (x_current_display, FRAME_X_WINDOW (f), 5465 if (! XWithdrawWindow (x_current_display, FRAME_X_WINDOW (f),
5461 DefaultScreen (x_current_display))) 5466 DefaultScreen (x_current_display)))