winex11: Use the same full screen test in is_window_managed and update_wm_states.

This commit is contained in:
Alexandre Julliard 2008-02-25 19:48:07 +01:00
parent a268725922
commit dba8ad5751
1 changed files with 2 additions and 2 deletions

View File

@ -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 */