Initial popup window and window manager

Jose Alonso alonso at estadao.com.br
Mon May 9 14:17:31 CDT 2005


I have a problem with an application that creates a initial popup
window and starts another application. The window for the second
application is completely covered by the initial popup window.

Investigating the problem, I found that the popup window is not
managed by the window manager and no other wine or gnome window can
go on top of this window (even on top windows).

Making the popup window managed works for me (Fedora core 3,
gnome, metacity). I don't know in other configurations.
See attached patch.

I am attaching also a small program to create the popup window.

-- 
     alonso
-------------- next part --------------
--- wine/dlls/x11drv/window.c.orig	2005-04-26 05:16:17.000000000 -0300
+++ wine/dlls/x11drv/window.c	2005-05-09 15:46:40.784335349 -0300
@@ -134,13 +134,7 @@ inline static BOOL is_window_managed( HW
     /* application windows are managed */
     if (ex_style & WS_EX_APPWINDOW) return TRUE;
     /* full-screen popup windows are managed */
-    if (style & WS_POPUP)
-    {
-        RECT rect;
-        GetWindowRect( hwnd, &rect );
-        if ((rect.right - rect.left) == screen_width && (rect.bottom - rect.top) == screen_height)
-            return TRUE;
-    }
+    if (style & WS_POPUP) return TRUE;
     /* default: not managed */
     return FALSE;
 }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.c
Type: text/x-csrc
Size: 1992 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20050509/4c33c778/main.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: text/x-makefile
Size: 597 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20050509/4c33c778/Makefile.bin


More information about the wine-devel mailing list