aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/w32fns.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/w32fns.c b/src/w32fns.c
index a269645c241..d7e0f7bcd0f 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -5816,6 +5816,10 @@ w32_load_system_font (f,fontname,size)
5816 ended up with. */ 5816 ended up with. */
5817 return NULL; 5817 return NULL;
5818 5818
5819 /* Specify anti-aliasing to prevent Cleartype fonts being used,
5820 since those fonts leave garbage behind. */
5821 lf.lfQuality = ANTIALIASED_QUALITY;
5822
5819 font = (XFontStruct *) xmalloc (sizeof (XFontStruct)); 5823 font = (XFontStruct *) xmalloc (sizeof (XFontStruct));
5820 bzero (font, sizeof (*font)); 5824 bzero (font, sizeof (*font));
5821 5825
@@ -13708,9 +13712,17 @@ Text larger than the specified size is clipped. */)
13708 BLOCK_INPUT; 13712 BLOCK_INPUT;
13709 compute_tip_xy (f, parms, dx, dy, PIXEL_WIDTH (f), 13713 compute_tip_xy (f, parms, dx, dy, PIXEL_WIDTH (f),
13710 PIXEL_HEIGHT (f), &root_x, &root_y); 13714 PIXEL_HEIGHT (f), &root_x, &root_y);
13715
13716 /* Put tooltip in topmost group and in position. */
13711 SetWindowPos (FRAME_W32_WINDOW (f), HWND_TOPMOST, 13717 SetWindowPos (FRAME_W32_WINDOW (f), HWND_TOPMOST,
13712 root_x, root_y, 0, 0, 13718 root_x, root_y, 0, 0,
13713 SWP_NOSIZE | SWP_NOACTIVATE); 13719 SWP_NOSIZE | SWP_NOACTIVATE);
13720
13721 /* Ensure tooltip is on top of other topmost windows (eg menus). */
13722 SetWindowPos (FRAME_W32_WINDOW (f), HWND_TOP,
13723 0, 0, 0, 0,
13724 SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
13725
13714 UNBLOCK_INPUT; 13726 UNBLOCK_INPUT;
13715 goto start_timer; 13727 goto start_timer;
13716 } 13728 }
@@ -13828,10 +13840,16 @@ Text larger than the specified size is clipped. */)
13828 AdjustWindowRect (&rect, f->output_data.w32->dwStyle, 13840 AdjustWindowRect (&rect, f->output_data.w32->dwStyle,
13829 FRAME_EXTERNAL_MENU_BAR (f)); 13841 FRAME_EXTERNAL_MENU_BAR (f));
13830 13842
13843 /* Position and size tooltip, and put it in the topmost group. */
13831 SetWindowPos (FRAME_W32_WINDOW (f), HWND_TOPMOST, 13844 SetWindowPos (FRAME_W32_WINDOW (f), HWND_TOPMOST,
13832 root_x, root_y, rect.right - rect.left, 13845 root_x, root_y, rect.right - rect.left,
13833 rect.bottom - rect.top, SWP_NOACTIVATE); 13846 rect.bottom - rect.top, SWP_NOACTIVATE);
13834 13847
13848 /* Ensure tooltip is on top of other topmost windows (eg menus). */
13849 SetWindowPos (FRAME_W32_WINDOW (f), HWND_TOP,
13850 0, 0, 0, 0,
13851 SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
13852
13835 /* Let redisplay know that we have made the frame visible already. */ 13853 /* Let redisplay know that we have made the frame visible already. */
13836 f->async_visible = 1; 13854 f->async_visible = 1;
13837 13855