forked from AuroraMiddleware/gtk
GDK W32: Add a comment for clarity
This is a copy of a similar comment in another place, which explains why WS_EX_TRANSPARENT windows get a special treatment. https://bugzilla.gnome.org/show_bug.cgi?id=758484
This commit is contained in:
parent
8b7783ce21
commit
3701a60401
@ -1229,6 +1229,9 @@ gdk_win32_window_hide (GdkWindow *window)
|
|||||||
if (GDK_WINDOW_TYPE (window) == GDK_WINDOW_TOPLEVEL)
|
if (GDK_WINDOW_TYPE (window) == GDK_WINDOW_TOPLEVEL)
|
||||||
ShowOwnedPopups (GDK_WINDOW_HWND (window), FALSE);
|
ShowOwnedPopups (GDK_WINDOW_HWND (window), FALSE);
|
||||||
|
|
||||||
|
/* Use SetWindowPos to hide transparent windows so automatic redraws
|
||||||
|
* in other windows can be suppressed.
|
||||||
|
*/
|
||||||
if (GetWindowLong (GDK_WINDOW_HWND (window), GWL_EXSTYLE) & WS_EX_TRANSPARENT)
|
if (GetWindowLong (GDK_WINDOW_HWND (window), GWL_EXSTYLE) & WS_EX_TRANSPARENT)
|
||||||
{
|
{
|
||||||
SetWindowPos (GDK_WINDOW_HWND (window), SWP_NOZORDER_SPECIFIED,
|
SetWindowPos (GDK_WINDOW_HWND (window), SWP_NOZORDER_SPECIFIED,
|
||||||
|
Loading…
Reference in New Issue
Block a user