https://bugs.winehq.org/show_bug.cgi?id=38009
Bug ID: 38009 Summary: winex11.drv does not set NET_WM_STATE_FULLSCREEN if the display mode was changed Product: Wine Version: 1.7.35 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: winex11.drv Assignee: wine-bugs@winehq.org Reporter: stefan@codeweavers.com Distribution: ---
Winex11.drv only sets NET_WM_STATE_FULLSCREEN on a fullscreen game window if the game uses the monitor resolution that was set when winex11.drv was loaded. The cause of this is that is_window_rect_fullscreen compares the window rectangle against the monitor size reported by Xinerama when winex11.drv was loaded.
This appears to trigger bugs inside Metacity clones and Compiz when creating a window at a lower resolution. It also breaks the fix that was proposed by a Marco developer to fix the bug that currently prevents fullscreen windows from being iconified.