]> code.delx.au - gnu-emacs/commitdiff
* xfns.c (x_real_pos_and_offsets): Fix pointer signedness.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 26 Feb 2015 04:43:25 +0000 (20:43 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 26 Feb 2015 04:43:38 +0000 (20:43 -0800)
src/ChangeLog
src/xfns.c

index e4506968baa75edd530ae52e456e58b568acfaaa..37e6d20eb8305cb046f19c1f8012e6de994f578d 100644 (file)
@@ -1,3 +1,7 @@
+2015-02-26  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * xfns.c (x_real_pos_and_offsets): Fix pointer signedness.
+
 2015-02-25  Jan Djärv  <jan.h.d@swipnet.se>
 
        * xterm.h (struct x_output): Remove x_pixels_outer_diff,
index afbd460b7c8595cce9456a0a23df917b8bdcdf67..4fc92c3fed2820a12c54d485373b72f66293ba56 100644 (file)
@@ -334,15 +334,16 @@ x_real_pos_and_offsets (struct frame *f,
   if (yptr) *yptr = real_y;
 
   if (right_offset_x || bottom_offset_y)
-  {
-    unsigned int ign, fw, fh;
-    Window rootw;
-
-    XGetGeometry (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f),
-                  &rootw, &ign, &ign, &fw, &fh, &ign, &ign);
-    if (right_offset_x) *right_offset_x = ow - fw + outer_x;
-    if (bottom_offset_y) *bottom_offset_y = oh - fh + outer_y;
-  }
+    {
+      int xy_ign;
+      unsigned int ign, fw, fh;
+      Window rootw;
+
+      XGetGeometry (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f),
+                   &rootw, &xy_ign, &xy_ign, &fw, &fh, &ign, &ign);
+      if (right_offset_x) *right_offset_x = ow - fw + outer_x;
+      if (bottom_offset_y) *bottom_offset_y = oh - fh + outer_y;
+    }
 }
 
 /* Store the screen positions of frame F into XPTR and YPTR.