]> git.eshelyaron.com Git - emacs.git/commitdiff
* xterm.c (x_set_offset): Take window manager decorations
authorJan Djärv <jan.h.d@swipnet.se>
Fri, 19 Sep 2003 14:45:21 +0000 (14:45 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Fri, 19 Sep 2003 14:45:21 +0000 (14:45 +0000)
  into account.

src/ChangeLog
src/xterm.c

index 00a82cc14078c5e1ec1916ed07b42b223596a3bc..a3116af3f8907f1446acfd6dcdc94f617ffa219b 100644 (file)
@@ -1,3 +1,8 @@
+2003-09-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * xterm.c (x_set_offset): Take window manager decorations
+       into account.
+
 2003-09-19  Richard M. Stallman  <rms@gnu.org>
 
        * atimer.h: Don't include lisp.h.
index 3874f3db82f64125cc3614495467adc74d2e784e..3300f6b505d746ef81f93728d8adadf7ea8dd9c5 100644 (file)
@@ -8314,12 +8314,15 @@ x_set_offset (f, xoff, yoff, change_gravity)
       f->win_gravity = NorthWestGravity;
     }
   x_calc_absolute_position (f);
-
   BLOCK_INPUT;
   x_wm_set_size_hint (f, (long) 0, 0);
 
   modified_left = f->left_pos;
   modified_top = f->top_pos;
+  modified_left += FRAME_X_OUTPUT (f)->x_pixels_outer_diff;
+  modified_top += FRAME_X_OUTPUT (f)->y_pixels_outer_diff;
+
 #if 0 /* Running on psilocin (Debian), and displaying on the NCD X-terminal,
         this seems to be unnecessary and incorrect.  rms, 4/17/97.  */
   /* It is a mystery why we need to add the border_width here