wine window disappears from virtual desktop!

Paul R Streitman prs at us.ibm.com
Fri Jun 18 13:56:21 CDT 2004




Alexandre,

      Yes, this does help.  I see that current CVS has other quirks
(strange scrollbars, etc), but with this patch I do not see the
disappearing window problem at all.

                                                              Thanks,
                                                                Paul
z/OS core components development
Internet: prs at us.ibm.com


                                                                           
             Alexandre                                                     
             Julliard                                                      
             <julliard at winehq.                                          To 
             org>                      Paul R                              
             Sent by:                  Streitman/Poughkeepsie/IBM at IBMUS    
             wine-devel-admin@                                          cc 
             winehq.org                wine-devel at winehq.org               
                                                                   Subject 
                                       Re: wine window disappears from     
             06/16/2004 11:35          virtual desktop!                    
             PM                                                            
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




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