Windows IME position is wrong when Aero glass is enabled
Submitted by Mikayla Hutchinson
Assigned to gtk-win32 maintainers
Link to original bug (#663096)
Description
The GTK+ Windows IME uses the Win32 function GetWindowRect to get the window position because the caret position it passes to ImmSetCandidateWindow must be relative to the window origin, not the client origin. However, on Vista/Win7, GetWindowRect doesn't return the correct value if DWM compositing (Aero Glass) is enabled. The correct value can be obtained using DwmGetWindowAttribute when DwmIsCompositionEnabled indicates that DWM is enabled.
See: http://git.gnome.org/browse/gtk+/tree/modules/input/gtkimcontextime.c?h=gtk-2-24#n939 http://stackoverflow.com/questions/3192232/getwindowrect-too-small-on-windows-7/3192264#3192264
Version: 2.16.x