comparison src/xterm.c @ 52546:4e5fa718d892

* xterm.c (x_set_offset): Take window manager decorations into account.
author Jan Djärv <jan.h.d@swipnet.se>
date Fri, 19 Sep 2003 14:45:21 +0000
parents 695cf19ef79e
children 4a9a4669a2b1
comparison
equal deleted inserted replaced
52545:abc39a63c916 52546:4e5fa718d892
8312 if (yoff < 0) 8312 if (yoff < 0)
8313 f->size_hint_flags |= YNegative; 8313 f->size_hint_flags |= YNegative;
8314 f->win_gravity = NorthWestGravity; 8314 f->win_gravity = NorthWestGravity;
8315 } 8315 }
8316 x_calc_absolute_position (f); 8316 x_calc_absolute_position (f);
8317 8317
8318 BLOCK_INPUT; 8318 BLOCK_INPUT;
8319 x_wm_set_size_hint (f, (long) 0, 0); 8319 x_wm_set_size_hint (f, (long) 0, 0);
8320 8320
8321 modified_left = f->left_pos; 8321 modified_left = f->left_pos;
8322 modified_top = f->top_pos; 8322 modified_top = f->top_pos;
8323 modified_left += FRAME_X_OUTPUT (f)->x_pixels_outer_diff;
8324 modified_top += FRAME_X_OUTPUT (f)->y_pixels_outer_diff;
8325
8323 #if 0 /* Running on psilocin (Debian), and displaying on the NCD X-terminal, 8326 #if 0 /* Running on psilocin (Debian), and displaying on the NCD X-terminal,
8324 this seems to be unnecessary and incorrect. rms, 4/17/97. */ 8327 this seems to be unnecessary and incorrect. rms, 4/17/97. */
8325 /* It is a mystery why we need to add the border_width here 8328 /* It is a mystery why we need to add the border_width here
8326 when the frame is already visible, but experiment says we do. */ 8329 when the frame is already visible, but experiment says we do. */
8327 if (change_gravity != 0) 8330 if (change_gravity != 0)