Mercurial > emacs
comparison src/xterm.c @ 7264:a701bffa0f9d
(x_calc_absolute_position): Use size_hint_flags.
New FLAGS arg deleted. Callers changed.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 02 May 1994 00:46:44 +0000 |
parents | 68fc80bf10df |
children | 2bc4929691e9 |
comparison
equal
deleted
inserted
replaced
7263:b7025b4bf659 | 7264:a701bffa0f9d |
---|---|
5104 | 5104 |
5105 return 0; | 5105 return 0; |
5106 } | 5106 } |
5107 #endif /* ! defined (HAVE_X11) */ | 5107 #endif /* ! defined (HAVE_X11) */ |
5108 | 5108 |
5109 x_calc_absolute_position (f, flags) | 5109 x_calc_absolute_position (f) |
5110 struct frame *f; | 5110 struct frame *f; |
5111 int flags; | |
5112 { | 5111 { |
5113 #ifdef HAVE_X11 | 5112 #ifdef HAVE_X11 |
5114 Window win, child; | 5113 Window win, child; |
5115 int win_x = 0, win_y = 0; | 5114 int win_x = 0, win_y = 0; |
5115 int flags = f->display.x->size_hint_flags; | |
5116 | 5116 |
5117 /* Find the position of the outside upper-left corner of | 5117 /* Find the position of the outside upper-left corner of |
5118 the inner window, with respect to the outer window. */ | 5118 the inner window, with respect to the outer window. */ |
5119 if (f->display.x->parent_desc != ROOT_WINDOW) | 5119 if (f->display.x->parent_desc != ROOT_WINDOW) |
5120 { | 5120 { |
5167 register int xoff, yoff; | 5167 register int xoff, yoff; |
5168 int change_gravity; | 5168 int change_gravity; |
5169 { | 5169 { |
5170 f->display.x->top_pos = yoff; | 5170 f->display.x->top_pos = yoff; |
5171 f->display.x->left_pos = xoff; | 5171 f->display.x->left_pos = xoff; |
5172 x_calc_absolute_position (f, 0); | 5172 x_calc_absolute_position (f); |
5173 | 5173 |
5174 BLOCK_INPUT; | 5174 BLOCK_INPUT; |
5175 #ifdef USE_X_TOOLKIT | 5175 #ifdef USE_X_TOOLKIT |
5176 XMoveWindow (XDISPLAY XtWindow (f->display.x->widget), | 5176 XMoveWindow (XDISPLAY XtWindow (f->display.x->widget), |
5177 f->display.x->left_pos, f->display.x->top_pos); | 5177 f->display.x->left_pos, f->display.x->top_pos); |