qt: X11 Xinput2 mouse motion backend
This commit is contained in:
@@ -168,7 +168,6 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
mouse_capture = state ? 1 : 0;
|
||||
qt_mouse_capture(mouse_capture);
|
||||
if (mouse_capture) {
|
||||
ui->stackedWidget->grabMouse();
|
||||
this->grabKeyboard();
|
||||
#ifdef WAYLAND
|
||||
if (QGuiApplication::platformName().contains("wayland")) {
|
||||
@@ -176,7 +175,6 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
}
|
||||
#endif
|
||||
} else {
|
||||
ui->stackedWidget->releaseMouse();
|
||||
this->releaseKeyboard();
|
||||
#ifdef WAYLAND
|
||||
if (QGuiApplication::platformName().contains("wayland")) {
|
||||
|
||||
Reference in New Issue
Block a user