changeset 7346:777404b1718d

(x_set_offset): Update XNegative and YNegative for new pos. (x_make_frame_invisible): Use XWithdrawWindow again.
author Richard M. Stallman <rms@gnu.org>
date Fri, 06 May 1994 00:59:24 +0000
parents c107ec7641ec
children 3a677a303d5b
files src/xterm.c
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Fri May 06 00:48:26 1994 +0000
+++ b/src/xterm.c	Fri May 06 00:59:24 1994 +0000
@@ -5148,7 +5148,6 @@
 			     - 2 * f->display.x->border_width - win_y
 			     - PIXEL_HEIGHT (f)
 			     + f->display.x->top_pos);
-
 #else /* ! defined (HAVE_X11) */
   WINDOWINFO_TYPE parentinfo;
 
@@ -5171,6 +5170,11 @@
 {
   f->display.x->top_pos = yoff;
   f->display.x->left_pos = xoff;
+  f->display.x->size_hint_flags &= ~ (XNegative | YNegative);
+  if (xoff < 0)
+    f->display.x->size_hint_flags |= XNegative;
+  if (yoff < 0)
+    f->display.x->size_hint_flags |= YNegative;
   x_calc_absolute_position (f);
 
   BLOCK_INPUT;
@@ -5455,7 +5459,8 @@
 #ifdef HAVE_X11R4
 
 #ifdef USE_X_TOOLKIT
-  XtPopdown (f->display.x->widget);
+  if (! XWithdrawWindow (x_current_display, XtWindow (f->display.x->widget),
+			 DefaultScreen (x_current_display)))
 #else /* not USE_X_TOOLKIT */
   if (! XWithdrawWindow (x_current_display, FRAME_X_WINDOW (f),
 			 DefaultScreen (x_current_display)))