From 9e4eaeef5cfb72943759c8360dc11d6b029af83e Mon Sep 17 00:00:00 2001 From: Alessandro Gatti Date: Thu, 25 Aug 2022 21:42:10 +0200 Subject: [PATCH] The Qt website's fix is actually incorrect... --- src/GUI/MainWindow.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GUI/MainWindow.cc b/src/GUI/MainWindow.cc index 1717c300..aadb6f6c 100644 --- a/src/GUI/MainWindow.cc +++ b/src/GUI/MainWindow.cc @@ -411,7 +411,7 @@ namespace degate // Workaround for a bug on Windows that occurs when using QOpenGLWidget + fullscreen mode. // See: https://doc.qt.io/qt-6/windows-issues.html#fullscreen-opengl-based-windows. #ifdef SYS_WINDOWS - HWND handle = reinterpret_cast(window.winId()); + HWND handle = reinterpret_cast(window()->winId()); SetWindowLongPtr(handle, GWL_STYLE, GetWindowLongPtr(handle, GWL_STYLE) | WS_BORDER); #endif