Fix T86859: Allow covering of Taskbar when Fullscreen from Maximized

When the window is already maximized allow covering Windows Taskbar when toggling fullscreen.

Differential Revision: https://developer.blender.org/D10811

Reviewed by Harley Acheson
This commit is contained in:
Vincent Blankfield 2021-03-26 10:19:04 -07:00 committed by Harley Acheson
parent 8408a8fda2
commit 12193035ed
Notes: blender-bot 2023-02-14 06:27:47 +01:00
Referenced by issue #86859, Making window fullscreen from maximized doesn't cover the taskbar on Windows
1 changed files with 1 additions and 1 deletions

View File

@ -533,7 +533,7 @@ GHOST_TSuccess GHOST_WindowWin32::setState(GHOST_TWindowState state)
wp.showCmd = SW_SHOWMAXIMIZED;
wp.ptMaxPosition.x = 0;
wp.ptMaxPosition.y = 0;
style &= ~WS_CAPTION;
style &= ~(WS_CAPTION | WS_MAXIMIZE);
break;
case GHOST_kWindowStateNormal:
default: