GDK W32: Don't use WM-drawn shadow for tooltips

This prevents WM from drawing shadows around tooltip windows,
which, in Adwaita, should have no shadow and are CSD-ish (which means
that tooltip window is larger than it looks, and WM draws the shadow
only on the outside, leaving a gap between the visible tooltip edge and
the shadow).

https://bugzilla.gnome.org/show_bug.cgi?id=759898
This commit is contained in:
Руслан Ижбулатов 2015-12-27 05:05:39 +00:00
parent 3cd79c11fc
commit 37bd22c3d9

View File

@ -366,8 +366,7 @@ RegisterGdkClass (GdkWindowType wtype, GdkWindowTypeHint wtype_hint)
case GDK_WINDOW_TEMP:
if ((wtype_hint == GDK_WINDOW_TYPE_HINT_MENU) ||
(wtype_hint == GDK_WINDOW_TYPE_HINT_DROPDOWN_MENU) ||
(wtype_hint == GDK_WINDOW_TYPE_HINT_POPUP_MENU) ||
(wtype_hint == GDK_WINDOW_TYPE_HINT_TOOLTIP))
(wtype_hint == GDK_WINDOW_TYPE_HINT_POPUP_MENU))
{
if (klassTEMPSHADOW == 0)
{