Merge pull request #632 from manongjohn/fix_LNP_hooking_incorrectly
Fix Lazy Nezumi Pro hooking incorrectly
This commit is contained in:
commit
b9fcbb772f
1 changed files with 4 additions and 1 deletions
|
@ -893,6 +893,10 @@ FullScreenWidget::FullScreenWidget(QWidget *parent) : QWidget(parent) {
|
||||||
layout->setSpacing(0);
|
layout->setSpacing(0);
|
||||||
|
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
this->winId();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------
|
||||||
|
@ -1033,7 +1037,6 @@ bool FullScreenWidget::toggleFullScreen(
|
||||||
this->window()->windowHandle()->setScreen(ptrScreenThisWindowIsOn);
|
this->window()->windowHandle()->setScreen(ptrScreenThisWindowIsOn);
|
||||||
|
|
||||||
// http://doc.qt.io/qt-5/windows-issues.html#fullscreen-opengl-based-windows
|
// http://doc.qt.io/qt-5/windows-issues.html#fullscreen-opengl-based-windows
|
||||||
this->winId();
|
|
||||||
QWindowsWindowFunctions::setHasBorderInFullScreen(
|
QWindowsWindowFunctions::setHasBorderInFullScreen(
|
||||||
this->windowHandle(), true);
|
this->windowHandle(), true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue