wine window disappears from virtual desktop!

Alexandre Julliard julliard at winehq.org
Wed Jun 16 22:35:06 CDT 2004


Paul R Streitman <prs at us.ibm.com> writes:

> Last week, I appended about this problem:  Application windows under wine
> disappear if you switch to a different virtual desktop and then back under
> either AfterStep or Enlightenment window managers.  The program is still
> apparently running (according to top), but there is no way to retrieve it
> and it no longer appears in the window manager's window list.  It has to be
> killed off and restarted.

Does this help?

Index: dlls/x11drv/winpos.c
===================================================================
RCS file: /opt/cvs-commit/wine/dlls/x11drv/winpos.c,v
retrieving revision 1.85
diff -u -p -r1.85 winpos.c
--- dlls/x11drv/winpos.c	14 Jun 2004 19:32:21 -0000	1.85
+++ dlls/x11drv/winpos.c	17 Jun 2004 03:19:19 -0000
@@ -1014,7 +1014,7 @@ BOOL X11DRV_SetWindowPos( WINDOWPOS *win
                           RDW_NOERASE | RDW_NOINTERNALPAINT | RDW_ALLCHILDREN );
             set_visible_style( winpos->hwnd, FALSE );
         }
-        else if ((wndPtr->dwStyle & WS_VISIBLE) &&
+        else if ((wndPtr->dwStyle & WS_VISIBLE) && bChangePos &&
                  X11DRV_is_window_rect_mapped( &oldWindowRect ) &&
                  !X11DRV_is_window_rect_mapped( &newWindowRect ))
         {
@@ -1046,7 +1046,7 @@ BOOL X11DRV_SetWindowPos( WINDOWPOS *win
         {
             set_visible_style( winpos->hwnd, TRUE );
         }
-        else if ((wndPtr->dwStyle & WS_VISIBLE) &&
+        else if ((wndPtr->dwStyle & WS_VISIBLE) && bChangePos &&
                  !X11DRV_is_window_rect_mapped( &oldWindowRect ) &&
                  X11DRV_is_window_rect_mapped( &newWindowRect ))
         {

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list