winex11: Use the same full screen test in is_window_managed and update_wm_states.
This commit is contained in:
parent
a268725922
commit
dba8ad5751
|
@ -103,8 +103,8 @@ BOOL is_window_managed( HWND hwnd, UINT swp_flags, const RECT *window_rect )
|
|||
/* popup with sysmenu == caption are managed */
|
||||
if (style & WS_SYSMENU) return TRUE;
|
||||
/* full-screen popup windows are managed */
|
||||
if ((window_rect->right - window_rect->left) == screen_width &&
|
||||
(window_rect->bottom - window_rect->top) == screen_height)
|
||||
if (window_rect->left <= 0 && window_rect->right >= screen_width &&
|
||||
window_rect->top <= 0 && window_rect->bottom >= screen_height)
|
||||
return TRUE;
|
||||
}
|
||||
/* default: not managed */
|
||||
|
|
Loading…
Reference in New Issue