hw/xwin: Stop assuming WS_EX_APPWINDOW style in WM_SHOWWINDOW
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
		
							parent
							
								
									56e94403f8
								
							
						
					
					
						commit
						d6dcde7a03
					
				| 
						 | 
				
			
			@ -870,14 +870,10 @@ winTopLevelWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
 | 
			
		|||
 | 
			
		||||
        /* */
 | 
			
		||||
        if (!pWin->overrideRedirect) {
 | 
			
		||||
            /* Flag that this window needs to be made active when clicked */
 | 
			
		||||
            SetProp(hwnd, WIN_NEEDMANAGE_PROP, (HANDLE) 1);
 | 
			
		||||
 | 
			
		||||
            if (!(GetWindowLongPtr(hwnd, GWL_EXSTYLE) & WS_EX_APPWINDOW)) {
 | 
			
		||||
            HWND zstyle = HWND_NOTOPMOST;
 | 
			
		||||
 | 
			
		||||
                /* Set the window extended style flags */
 | 
			
		||||
                SetWindowLongPtr(hwnd, GWL_EXSTYLE, WS_EX_APPWINDOW);
 | 
			
		||||
            /* Flag that this window needs to be made active when clicked */
 | 
			
		||||
            SetProp(hwnd, WIN_NEEDMANAGE_PROP, (HANDLE) 1);
 | 
			
		||||
 | 
			
		||||
            /* Set the transient style flags */
 | 
			
		||||
            if (GetParent(hwnd))
 | 
			
		||||
| 
						 | 
				
			
			@ -907,7 +903,6 @@ winTopLevelWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
 | 
			
		|||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            }
 | 
			
		||||
            wmMsg.msg = WM_WM_MAP3;
 | 
			
		||||
        }
 | 
			
		||||
        else {                  /* It is an overridden window so make it top of Z stack */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue