diff options
author | Ken Moore <ken@ixsystems.com> | 2017-08-30 07:04:44 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-08-30 07:04:44 -0400 |
commit | eff681c9e56f6044852779b61fbe701e623f2f3a (patch) | |
tree | f4e9791695eb720abac9d49686b3659ed528bdb7 /src-qt5/core/libLumina/NativeEmbedWidget.h | |
parent | Clean up the use of the settings files within the entire screensaver system. (diff) | |
download | lumina-eff681c9e56f6044852779b61fbe701e623f2f3a.tar.gz lumina-eff681c9e56f6044852779b61fbe701e623f2f3a.tar.bz2 lumina-eff681c9e56f6044852779b61fbe701e623f2f3a.zip |
Finish up all the mouse focus handling for embedded windows. Works beautifully now.
Diffstat (limited to 'src-qt5/core/libLumina/NativeEmbedWidget.h')
-rw-r--r-- | src-qt5/core/libLumina/NativeEmbedWidget.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src-qt5/core/libLumina/NativeEmbedWidget.h b/src-qt5/core/libLumina/NativeEmbedWidget.h index 7e129fa3..532db9b9 100644 --- a/src-qt5/core/libLumina/NativeEmbedWidget.h +++ b/src-qt5/core/libLumina/NativeEmbedWidget.h @@ -18,6 +18,7 @@ #include <QShowEvent> #include <QHideEvent> #include <QPaintEvent> +#include <QMouseEvent> class NativeEmbedWidget : public QWidget{ Q_OBJECT @@ -45,6 +46,7 @@ public: public slots: void raiseWindow(); + void lowerWindow(); //Pause/resume void pause(); @@ -61,7 +63,10 @@ protected: void paintEvent(QPaintEvent *ev); void enterEvent(QEvent *ev); void leaveEvent(QEvent *ev); - bool nativeEvent(const QByteArray &eventType, void *message, long *result); + void mouseMoveEvent(QMouseEvent *ev); + void mousePressEvent(QMouseEvent *ev); + void mouseReleaseEvent(QMouseEvent *ev); + //bool nativeEvent(const QByteArray &eventType, void *message, long *result); }; #endif |