From ef7735a27d66660ae8775ca3fef0af7b15926a85 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 19 Jul 2017 15:34:05 -0400 Subject: Get the compositing working much smoother now. Only re-grab the X11 image when it changes, then store it for all paint events (including partial painting updates) - making things much faster to update on-demand. --- src-qt5/core/libLumina/NativeEmbedWidget.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src-qt5/core/libLumina/NativeEmbedWidget.h') diff --git a/src-qt5/core/libLumina/NativeEmbedWidget.h b/src-qt5/core/libLumina/NativeEmbedWidget.h index 78c11dfc..756c8317 100644 --- a/src-qt5/core/libLumina/NativeEmbedWidget.h +++ b/src-qt5/core/libLumina/NativeEmbedWidget.h @@ -24,6 +24,7 @@ class NativeEmbedWidget : public QWidget{ private: NativeWindow *WIN; QSize winSize; + QImage winImage; private slots: //Simplification functions -- cgit From 334bb3d2ebb26ea518c0f2c98490d79d6b3e77ef Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 20 Jul 2017 17:17:54 -0400 Subject: Get the compositing and window interactions all cleaned up. Seems to work great now. --- src-qt5/core/libLumina/NativeEmbedWidget.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src-qt5/core/libLumina/NativeEmbedWidget.h') diff --git a/src-qt5/core/libLumina/NativeEmbedWidget.h b/src-qt5/core/libLumina/NativeEmbedWidget.h index 756c8317..65e03c51 100644 --- a/src-qt5/core/libLumina/NativeEmbedWidget.h +++ b/src-qt5/core/libLumina/NativeEmbedWidget.h @@ -25,6 +25,7 @@ private: NativeWindow *WIN; QSize winSize; QImage winImage; + bool paused; private slots: //Simplification functions @@ -42,7 +43,13 @@ public: bool detachWindow(); bool isEmbedded(); //status of the embed + + public slots: + //Pause/resume + void pause(); + void resume(); + void resyncWindow(); void repaintWindow(); -- cgit