mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 18:25:38 +00:00
Use SHOW command instead of SHOWNORMAL when making a window visible, since SHOWNORMAL will un-maximize a fullscreen or maximized window.
Do not force an invisible window to become visible when modifying its state or borders.
This commit is contained in:
parent
dafcfd6f38
commit
1cd2b8d076
|
@ -810,7 +810,7 @@ namespace OpenTK.Platform.Windows
|
|||
{
|
||||
if (value)
|
||||
{
|
||||
Functions.ShowWindow(window.WindowHandle, ShowWindowCommand.SHOWNORMAL);
|
||||
Functions.ShowWindow(window.WindowHandle, ShowWindowCommand.SHOW);
|
||||
}
|
||||
else if (!value)
|
||||
{
|
||||
|
@ -989,7 +989,11 @@ namespace OpenTK.Platform.Windows
|
|||
SetWindowPosFlags.NOMOVE | SetWindowPosFlags.NOZORDER |
|
||||
SetWindowPosFlags.FRAMECHANGED);
|
||||
|
||||
Visible = true;
|
||||
// Force window to redraw update its borders, but only if it's
|
||||
// already visible (invisible windows will change borders when
|
||||
// they become visible, so no need to make them visiable prematurely).
|
||||
if (Visible)
|
||||
Visible = true;
|
||||
|
||||
WindowState = state;
|
||||
|
||||
|
|
Loading…
Reference in a new issue