mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 16:35:36 +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)
|
if (value)
|
||||||
{
|
{
|
||||||
Functions.ShowWindow(window.WindowHandle, ShowWindowCommand.SHOWNORMAL);
|
Functions.ShowWindow(window.WindowHandle, ShowWindowCommand.SHOW);
|
||||||
}
|
}
|
||||||
else if (!value)
|
else if (!value)
|
||||||
{
|
{
|
||||||
|
@ -989,6 +989,10 @@ namespace OpenTK.Platform.Windows
|
||||||
SetWindowPosFlags.NOMOVE | SetWindowPosFlags.NOZORDER |
|
SetWindowPosFlags.NOMOVE | SetWindowPosFlags.NOZORDER |
|
||||||
SetWindowPosFlags.FRAMECHANGED);
|
SetWindowPosFlags.FRAMECHANGED);
|
||||||
|
|
||||||
|
// 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;
|
Visible = true;
|
||||||
|
|
||||||
WindowState = state;
|
WindowState = state;
|
||||||
|
|
Loading…
Reference in a new issue