Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
8ae21425
Commit
8ae21425
authored
Feb 25, 2015
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* xfns.c (x_real_pos_and_offsets): Fix pointer signedness.
parent
4f9befb3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
src/ChangeLog
src/ChangeLog
+4
-0
src/xfns.c
src/xfns.c
+10
-9
No files found.
src/ChangeLog
View file @
8ae21425
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,
...
...
src/xfns.c
View file @
8ae21425
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment