diff options
| author | Miles Bader | 2007-07-26 05:19:25 +0000 |
|---|---|---|
| committer | Miles Bader | 2007-07-26 05:19:25 +0000 |
| commit | 70360d0cab4f5e9fa351cd131e45fa86401896c0 (patch) | |
| tree | 98ae95cd155a007e7ceb765bfe8cf9ff872158fb /src | |
| parent | c07bb40b73856e3c40daf1dc6007ea13e3870912 (diff) | |
| parent | ef2805c29bb03f0c8c0d4b37a65f511123dcab1c (diff) | |
| download | emacs-70360d0cab4f5e9fa351cd131e45fa86401896c0.tar.gz emacs-70360d0cab4f5e9fa351cd131e45fa86401896c0.zip | |
Merge from emacs--rel--22
Patches applied:
* emacs--rel--22 (patch 70-73)
- Update from CVS
2007-07-25 Glenn Morris <rgm@gnu.org>
* Relicense all FSF files to GPLv3 or later.
2007-07-24 Jason Rumney <jasonr@gnu.org>
* src/w32fns.c (x_real_positions): Get real position from OS instead of
calculating it.
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32fns.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index 47ca9157623..be3570231dc 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -6,7 +6,7 @@ This file is part of GNU Emacs. | |||
| 6 | 6 | ||
| 7 | GNU Emacs is free software; you can redistribute it and/or modify | 7 | GNU Emacs is free software; you can redistribute it and/or modify |
| 8 | it under the terms of the GNU General Public License as published by | 8 | it under the terms of the GNU General Public License as published by |
| 9 | the Free Software Foundation; either version 2, or (at your option) | 9 | the Free Software Foundation; either version 3, or (at your option) |
| 10 | any later version. | 10 | any later version. |
| 11 | 11 | ||
| 12 | GNU Emacs is distributed in the hope that it will be useful, | 12 | GNU Emacs is distributed in the hope that it will be useful, |
| @@ -436,20 +436,21 @@ x_real_positions (f, xptr, yptr) | |||
| 436 | POINT pt; | 436 | POINT pt; |
| 437 | RECT rect; | 437 | RECT rect; |
| 438 | 438 | ||
| 439 | GetClientRect(FRAME_W32_WINDOW(f), &rect); | 439 | /* Get the bounds of the WM window. */ |
| 440 | AdjustWindowRect(&rect, f->output_data.w32->dwStyle, FRAME_EXTERNAL_MENU_BAR(f)); | 440 | GetWindowRect (FRAME_W32_WINDOW (f), &rect); |
| 441 | 441 | ||
| 442 | pt.x = rect.left; | 442 | pt.x = 0; |
| 443 | pt.y = rect.top; | 443 | pt.y = 0; |
| 444 | 444 | ||
| 445 | ClientToScreen (FRAME_W32_WINDOW(f), &pt); | 445 | /* Convert (0, 0) in the client area to screen co-ordinates. */ |
| 446 | ClientToScreen (FRAME_W32_WINDOW (f), &pt); | ||
| 446 | 447 | ||
| 447 | /* Remember x_pixels_diff and y_pixels_diff. */ | 448 | /* Remember x_pixels_diff and y_pixels_diff. */ |
| 448 | f->x_pixels_diff = pt.x - rect.left; | 449 | f->x_pixels_diff = pt.x - rect.left; |
| 449 | f->y_pixels_diff = pt.y - rect.top; | 450 | f->y_pixels_diff = pt.y - rect.top; |
| 450 | 451 | ||
| 451 | *xptr = pt.x; | 452 | *xptr = rect.left; |
| 452 | *yptr = pt.y; | 453 | *yptr = rect.top; |
| 453 | } | 454 | } |
| 454 | 455 | ||
| 455 | 456 | ||