[Wine-patches] [eter-2.1] winex11.drv: Don't manage sticked windows in 1c8 (eterbug #11543, eterbug #11562, eterbug #11755). (v2)

Dmitry Timoshkov dtimoshkov на etersoft.ru
Пн Июн 5 15:32:44 MSK 2017


Based on a patch by Konstantin Kondratyuk <kondratyuk на etersoft.ru>.
---
 dlls/winex11.drv/window.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index 22554a61de..ba28d93321 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -175,6 +175,17 @@ static BOOL etersoft_is_window_managed(HWND hwnd, DWORD style, DWORD ex_style)
             return FALSE;
     }
 
+    /* eterbug #11562, eterbug #11543, eterbug #11755 */
+    /* Sticked window should not be controlled by the window manager */
+    if ( etersoft_1version && (etersoft_1version() == 8) )
+    {
+        if (!strcmp(classname, "V8NewLocalFrameBaseWnd"))
+        {
+            DWORD ex_style = GetWindowLongW( hwnd, GWL_EXSTYLE );
+            if (ex_style & WS_EX_APPWINDOW) return TRUE;
+            return FALSE;
+        }
+    }
 
     /* EterBug 1087 */
 
-- 
2.12.2



Подробная информация о списке рассылки Wine-patches