mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 02:03:11 +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 "VrMenu.h"
|
||||||
|
|
||||||
#include "ui/Logging.h"
|
#include "ui/Logging.h"
|
||||||
#include <iostream> // adebug
|
|
||||||
|
|
||||||
#include <PointerManager.h>
|
#include <PointerManager.h>
|
||||||
|
|
||||||
|
@ -620,13 +619,7 @@ class KeyboardFocusHack : public QObject {
|
||||||
public:
|
public:
|
||||||
KeyboardFocusHack() {
|
KeyboardFocusHack() {
|
||||||
Q_ASSERT(_mainWindow);
|
Q_ASSERT(_mainWindow);
|
||||||
std::cout << "adebug _mainWindow = " << (void*)(_mainWindow) << std::endl; // adebug
|
|
||||||
QTimer::singleShot(200, [=] {
|
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 = new QWindow();
|
||||||
_hackWindow->setFlags(Qt::FramelessWindowHint);
|
_hackWindow->setFlags(Qt::FramelessWindowHint);
|
||||||
_hackWindow->setGeometry(_mainWindow->x(), _mainWindow->y(), 10, 10);
|
_hackWindow->setGeometry(_mainWindow->x(), _mainWindow->y(), 10, 10);
|
||||||
|
@ -654,11 +647,10 @@ private:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
std::cout << "adebug findMainWindow() result = " << (void*)(result) << std::endl; // adebug
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
QWindow* _mainWindow { findMainWindow() };
|
QWindow* const _mainWindow { findMainWindow() };
|
||||||
QWindow* _hackWindow { nullptr };
|
QWindow* _hackWindow { nullptr };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue