Fix Lazy Nezumi Pro hooking incorrectly

This commit is contained in:
manongjohn 2021-03-28 00:13:42 -04:00
parent 63874b4309
commit c3cbbbf0f7

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);