X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e5b533ec0a5b459fe2ac58abd6f21e5b1e51a92..4a2d030adfa836f6ada1830c9057170d053bcc64:/src/msw/toplevel.cpp diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index 1a77562f51..37b3a3d0a7 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -4,7 +4,6 @@ // Author: Vadim Zeitlin // Modified by: // Created: 24.09.01 -// RCS-ID: $Id$ // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com) // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -1101,6 +1100,12 @@ bool wxTopLevelWindowMSW::ShowFullScreen(bool show, long style) newStyle &= ~offFlags; + // Full screen windows should logically be popups as they don't have + // decorations (and are definitely not children) and while not using + // this style doesn't seem to make any difference for most windows, it + // breaks wxGLCanvas in some cases, see #15434, so just always use it. + newStyle |= WS_POPUP; + // change our window style to be compatible with full-screen mode ::SetWindowLong(GetHwnd(), GWL_STYLE, newStyle);