diff options
| author | Eli Zaretskii | 2006-04-08 12:27:13 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2006-04-08 12:27:13 +0000 |
| commit | 1d79e5217cd7996967fef3896357600b6fa7a5bf (patch) | |
| tree | c60ed6e44b0bf9011fefb9827d69c4c9eb5a5754 | |
| parent | cf5cbca4a279ad0da225023134c217f816b25e94 (diff) | |
| download | emacs-1d79e5217cd7996967fef3896357600b6fa7a5bf.tar.gz emacs-1d79e5217cd7996967fef3896357600b6fa7a5bf.zip | |
(Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/w32fns.c | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 669c5a0c0b9..56957d655b8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2006-04-08 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos. | ||
| 4 | |||
| 1 | 2006-04-03 Paul Eggert <eggert@cs.ucla.edu> | 5 | 2006-04-03 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 6 | ||
| 3 | * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to | 7 | * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to |
diff --git a/src/w32fns.c b/src/w32fns.c index 55f4af03d6e..1cc3dc2800c 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -7668,9 +7668,12 @@ Text larger than the specified size is clipped. */) | |||
| 7668 | AdjustWindowRect (&rect, f->output_data.w32->dwStyle, | 7668 | AdjustWindowRect (&rect, f->output_data.w32->dwStyle, |
| 7669 | FRAME_EXTERNAL_MENU_BAR (f)); | 7669 | FRAME_EXTERNAL_MENU_BAR (f)); |
| 7670 | 7670 | ||
| 7671 | /* Position and size tooltip, and put it in the topmost group. */ | 7671 | /* Position and size tooltip, and put it in the topmost group. |
| 7672 | The add-on of 3 to the 5th argument is a kludge: without it, | ||
| 7673 | some fonts cause the last character of the tip to be truncated, | ||
| 7674 | for some obscure reason. */ | ||
| 7672 | SetWindowPos (FRAME_W32_WINDOW (f), HWND_TOPMOST, | 7675 | SetWindowPos (FRAME_W32_WINDOW (f), HWND_TOPMOST, |
| 7673 | root_x, root_y, rect.right - rect.left, | 7676 | root_x, root_y, rect.right - rect.left + 3, |
| 7674 | rect.bottom - rect.top, SWP_NOACTIVATE); | 7677 | rect.bottom - rect.top, SWP_NOACTIVATE); |
| 7675 | 7678 | ||
| 7676 | /* Ensure tooltip is on top of other topmost windows (eg menus). */ | 7679 | /* Ensure tooltip is on top of other topmost windows (eg menus). */ |