Sine Striker
2023-12-20 a5372ac566469efb59e6cfb29a695021c7c3528d
src/core/kernel/systemwindow_p.h
@@ -1,6 +1,15 @@
#ifndef SYSTEMWINDOW_P_H
#define SYSTEMWINDOW_P_H
//
//  W A R N I N G !!!
//  -----------------
//
// This file is not part of the QWindowKit API. It is used purely as an
// implementation detail. This header file may change from version to
// version without notice, or may even be removed.
//
#include <QtGui/QWindow>
#include <QtGui/QMouseEvent>
@@ -36,7 +45,7 @@
                            target->setPosition(target->x(), 0);
                        }
                        target->removeEventFilter(this);
                        this->deleteLater();
                        deleteLater();
                    }
                    default:
@@ -90,7 +99,7 @@
                    case QEvent::MouseButtonRelease: {
                        target->removeEventFilter(this);
                        this->deleteLater();
                        deleteLater();
                    }
                    default:
@@ -111,7 +120,7 @@
    // QWindow::startSystemMove() and QWindow::startSystemResize() is first supported at Qt 5.15
    // QWindow::startSystemResize() returns false on macOS
    // QWindow::startSystemMove() and QWindow::startSystemResize() returns false on Linux Unity DE
    // When the new API fails, we emulate the window actions using the classical API.
    static inline void startSystemMove(QWindow *window) {