qt: X11 Xinput2 mouse motion backend

This commit is contained in:
Cacodemon345
2022-02-15 02:34:13 +06:00
parent 332119fd11
commit 0d31bb0cc6
6 changed files with 201 additions and 10 deletions

View File

@@ -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")) {