Merge pull request #632 from manongjohn/fix_LNP_hooking_incorrectly

Fix Lazy Nezumi Pro hooking incorrectly
This commit is contained in:
manongjohn 2021-04-01 11:24:59 -04:00 committed by GitHub
commit b9fcbb772f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -893,6 +893,10 @@ FullScreenWidget::FullScreenWidget(QWidget *parent) : QWidget(parent) {
layout->setSpacing(0);
setLayout(layout);
#ifdef _WIN32
this->winId();
#endif
}
//---------------------------------------------------------------------------------
@ -1033,7 +1037,6 @@ bool FullScreenWidget::toggleFullScreen(
this->window()->windowHandle()->setScreen(ptrScreenThisWindowIsOn);
// http://doc.qt.io/qt-5/windows-issues.html#fullscreen-opengl-based-windows
this->winId();
QWindowsWindowFunctions::setHasBorderInFullScreen(
this->windowHandle(), true);