mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-11 21:52:43 +02:00
remove linux crash-on-login workaround hackery
This commit is contained in:
parent
f35469c0de
commit
91f0134632
1 changed files with 1 additions and 9 deletions
|
@ -27,7 +27,6 @@
|
|||
#include "VrMenu.h"
|
||||
|
||||
#include "ui/Logging.h"
|
||||
#include <iostream> // adebug
|
||||
|
||||
#include <PointerManager.h>
|
||||
|
||||
|
@ -620,13 +619,7 @@ class KeyboardFocusHack : public QObject {
|
|||
public:
|
||||
KeyboardFocusHack() {
|
||||
Q_ASSERT(_mainWindow);
|
||||
std::cout << "adebug _mainWindow = " << (void*)(_mainWindow) << std::endl; // adebug
|
||||
QTimer::singleShot(200, [=] {
|
||||
_mainWindow = findMainWindow();
|
||||
std::cout << "adebug again _mainWindow = " << (void*)(_mainWindow) << std::endl; // adebug
|
||||
std::cout << "adebug _mainWindow->x() = " << _mainWindow->x() << std::endl;
|
||||
std::cout << " adebug _mainWindow->y() = " << _mainWindow->y() << std::endl;
|
||||
std::cout << std::endl; // adebug
|
||||
_hackWindow = new QWindow();
|
||||
_hackWindow->setFlags(Qt::FramelessWindowHint);
|
||||
_hackWindow->setGeometry(_mainWindow->x(), _mainWindow->y(), 10, 10);
|
||||
|
@ -654,11 +647,10 @@ private:
|
|||
break;
|
||||
}
|
||||
}
|
||||
std::cout << "adebug findMainWindow() result = " << (void*)(result) << std::endl; // adebug
|
||||
return result;
|
||||
}
|
||||
|
||||
QWindow* _mainWindow { findMainWindow() };
|
||||
QWindow* const _mainWindow { findMainWindow() };
|
||||
QWindow* _hackWindow { nullptr };
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue