aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/NativeEmbedWidget.h
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-07-19 13:53:34 -0400
committerKen Moore <ken@ixsystems.com>2017-07-19 13:53:34 -0400
commitf5b60b2681bc6fc8e9171566e28064fe7048aa8b (patch)
tree6dfcc866cbdc015cfec1b966bac1c214bcc59f6b /src-qt5/core/libLumina/NativeEmbedWidget.h
parentGet compositing completely working. This broke the move-update patch a bit - ... (diff)
downloadlumina-f5b60b2681bc6fc8e9171566e28064fe7048aa8b.tar.gz
lumina-f5b60b2681bc6fc8e9171566e28064fe7048aa8b.tar.bz2
lumina-f5b60b2681bc6fc8e9171566e28064fe7048aa8b.zip
Another checkpoint in the compositing saga. Got most of it working, but still getting random artifacting *outside* of the window that we are painting from time to time.
Diffstat (limited to 'src-qt5/core/libLumina/NativeEmbedWidget.h')
-rw-r--r--src-qt5/core/libLumina/NativeEmbedWidget.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src-qt5/core/libLumina/NativeEmbedWidget.h b/src-qt5/core/libLumina/NativeEmbedWidget.h
index 07e1c4dd..78c11dfc 100644
--- a/src-qt5/core/libLumina/NativeEmbedWidget.h
+++ b/src-qt5/core/libLumina/NativeEmbedWidget.h
@@ -13,6 +13,7 @@
#include "NativeWindow.h"
#include <QWidget>
+#include <QTimer>
#include <QResizeEvent>
#include <QShowEvent>
#include <QHideEvent>
@@ -22,14 +23,17 @@ class NativeEmbedWidget : public QWidget{
Q_OBJECT
private:
NativeWindow *WIN;
+ QSize winSize;
+private slots:
//Simplification functions
- void syncWinSize(QSize);
- void syncWidgetSize(QSize);
+ void syncWinSize(QSize sz = QSize());
+ void syncWidgetSize(QSize sz);
void hideWindow();
void showWindow();
QImage windowImage(QRect geom);
+
public:
NativeEmbedWidget(QWidget *parent);
@@ -39,6 +43,7 @@ public:
public slots:
void resyncWindow();
+ void repaintWindow();
protected:
void resizeEvent(QResizeEvent *ev);
bgstack15