summaryrefslogtreecommitdiff
path: root/src/w32fns.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2007-07-27 10:52:18 +0000
committerMiles Bader <miles@gnu.org>2007-07-27 10:52:18 +0000
commite468b87f91f26e66a8cde087c1a9c89c67b96d12 (patch)
tree7cf1ded30152bb0ddd4bbff544693a05b3b62911 /src/w32fns.c
parentb692c96bfa9b8bedd6e093a6c571624442db2e2a (diff)
parent05bfa8f34f3eedec3ad2fdb45971476a8c8f49b1 (diff)
downloademacs-e468b87f91f26e66a8cde087c1a9c89c67b96d12.tar.gz
Merge from emacs--devo--0
Patches applied: * emacs--devo--0 (patch 824-831) - Update from CVS - Merge from emacs--rel--22 * emacs--rel--22 (patch 70-74) - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-238
Diffstat (limited to 'src/w32fns.c')
-rw-r--r--src/w32fns.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/w32fns.c b/src/w32fns.c
index e0c763aef99..6c2beae7d92 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -6,7 +6,7 @@ This file is part of GNU Emacs.
GNU Emacs is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
+the Free Software Foundation; either version 3, or (at your option)
any later version.
GNU Emacs is distributed in the hope that it will be useful,
@@ -441,20 +441,21 @@ x_real_positions (f, xptr, yptr)
POINT pt;
RECT rect;
- GetClientRect(FRAME_W32_WINDOW(f), &rect);
- AdjustWindowRect(&rect, f->output_data.w32->dwStyle, FRAME_EXTERNAL_MENU_BAR(f));
+ /* Get the bounds of the WM window. */
+ GetWindowRect (FRAME_W32_WINDOW (f), &rect);
- pt.x = rect.left;
- pt.y = rect.top;
+ pt.x = 0;
+ pt.y = 0;
- ClientToScreen (FRAME_W32_WINDOW(f), &pt);
+ /* Convert (0, 0) in the client area to screen co-ordinates. */
+ ClientToScreen (FRAME_W32_WINDOW (f), &pt);
/* Remember x_pixels_diff and y_pixels_diff. */
f->x_pixels_diff = pt.x - rect.left;
f->y_pixels_diff = pt.y - rect.top;
- *xptr = pt.x;
- *yptr = pt.y;
+ *xptr = rect.left;
+ *yptr = rect.top;
}