winex11: Set MWM_FUNC_RESIZE for fullscreen desktop windows.
Same workaround as used in is_window_resizable, except it's on a different code path. This also affects other WMs (e.g. Kwin, compiz). Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56149 Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
This commit is contained in:
parent
d9b5bf9a71
commit
75a774f90a
1 changed files with 6 additions and 2 deletions
|
@ -747,9 +747,13 @@ static void set_mwm_hints( struct x11drv_win_data *data, UINT style, UINT ex_sty
|
|||
|
||||
if (data->hwnd == NtUserGetDesktopWindow())
|
||||
{
|
||||
if (is_desktop_fullscreen()) mwm_hints.decorations = 0;
|
||||
else mwm_hints.decorations = MWM_DECOR_TITLE | MWM_DECOR_BORDER | MWM_DECOR_MENU | MWM_DECOR_MINIMIZE;
|
||||
mwm_hints.functions = MWM_FUNC_MOVE | MWM_FUNC_MINIMIZE | MWM_FUNC_CLOSE;
|
||||
if (is_desktop_fullscreen())
|
||||
{
|
||||
mwm_hints.decorations = 0;
|
||||
mwm_hints.functions |= MWM_FUNC_RESIZE; /* some WMs need this to make it fullscreen */
|
||||
}
|
||||
else mwm_hints.decorations = MWM_DECOR_TITLE | MWM_DECOR_BORDER | MWM_DECOR_MENU | MWM_DECOR_MINIMIZE;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue