Mercurial > emacs
comparison src/w32fns.c @ 90381:65ca8fb66a0d
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-54
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 190-203)
- Update from CVS
- Undo incorrect merge of etc/images/README from Gnus 5.10
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 74-80)
- Update from CVS
- Update from CVS: README: Addition from 5.10.6 tar ball.
author | Miles Bader <miles@gnu.org> |
---|---|
date | Sun, 09 Apr 2006 00:38:22 +0000 |
parents | e3bacb89536a a3c24f2249c9 |
children | 2ecafc6d5db7 |
comparison
equal
deleted
inserted
replaced
90380:4bf7966e0788 | 90381:65ca8fb66a0d |
---|---|
3296 /* Need to return true for XBUTTON messages, false for others, | 3296 /* Need to return true for XBUTTON messages, false for others, |
3297 to indicate that we processed the message. */ | 3297 to indicate that we processed the message. */ |
3298 return (msg == WM_XBUTTONDOWN || msg == WM_XBUTTONUP); | 3298 return (msg == WM_XBUTTONDOWN || msg == WM_XBUTTONUP); |
3299 | 3299 |
3300 case WM_MOUSEMOVE: | 3300 case WM_MOUSEMOVE: |
3301 /* Ignore mouse movements as long as the menu is active. These | |
3302 movements are processed by the window manager anyway, and | |
3303 it's wrong to handle them as if they happened on the | |
3304 underlying frame. */ | |
3305 f = x_window_to_frame (dpyinfo, hwnd); | |
3306 if (f && f->output_data.w32->menubar_active) | |
3307 return 0; | |
3308 | |
3301 /* If the mouse has just moved into the frame, start tracking | 3309 /* If the mouse has just moved into the frame, start tracking |
3302 it, so we will be notified when it leaves the frame. Mouse | 3310 it, so we will be notified when it leaves the frame. Mouse |
3303 tracking only works under W98 and NT4 and later. On earlier | 3311 tracking only works under W98 and NT4 and later. On earlier |
3304 versions, there is no way of telling when the mouse leaves the | 3312 versions, there is no way of telling when the mouse leaves the |
3305 frame, so we just have to put up with help-echo and mouse | 3313 frame, so we just have to put up with help-echo and mouse |
7728 rect.right = width; | 7736 rect.right = width; |
7729 rect.bottom = height; | 7737 rect.bottom = height; |
7730 AdjustWindowRect (&rect, f->output_data.w32->dwStyle, | 7738 AdjustWindowRect (&rect, f->output_data.w32->dwStyle, |
7731 FRAME_EXTERNAL_MENU_BAR (f)); | 7739 FRAME_EXTERNAL_MENU_BAR (f)); |
7732 | 7740 |
7733 /* Position and size tooltip, and put it in the topmost group. */ | 7741 /* Position and size tooltip, and put it in the topmost group. |
7742 The add-on of 3 to the 5th argument is a kludge: without it, | |
7743 some fonts cause the last character of the tip to be truncated, | |
7744 for some obscure reason. */ | |
7734 SetWindowPos (FRAME_W32_WINDOW (f), HWND_TOPMOST, | 7745 SetWindowPos (FRAME_W32_WINDOW (f), HWND_TOPMOST, |
7735 root_x, root_y, rect.right - rect.left, | 7746 root_x, root_y, rect.right - rect.left + 3, |
7736 rect.bottom - rect.top, SWP_NOACTIVATE); | 7747 rect.bottom - rect.top, SWP_NOACTIVATE); |
7737 | 7748 |
7738 /* Ensure tooltip is on top of other topmost windows (eg menus). */ | 7749 /* Ensure tooltip is on top of other topmost windows (eg menus). */ |
7739 SetWindowPos (FRAME_W32_WINDOW (f), HWND_TOP, | 7750 SetWindowPos (FRAME_W32_WINDOW (f), HWND_TOP, |
7740 0, 0, 0, 0, | 7751 0, 0, 0, 0, |