aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop-unified/src-desktop/RootWindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/src-desktop/RootWindow.h')
-rw-r--r--src-qt5/core/lumina-desktop-unified/src-desktop/RootWindow.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/src-desktop/RootWindow.h b/src-qt5/core/lumina-desktop-unified/src-desktop/RootWindow.h
index 0e48c000..41c75a46 100644
--- a/src-qt5/core/lumina-desktop-unified/src-desktop/RootWindow.h
+++ b/src-qt5/core/lumina-desktop-unified/src-desktop/RootWindow.h
@@ -22,7 +22,10 @@ public:
void start();
- WId viewID(){ return root_view->parent()->winId(); }
+ WId viewID(){
+ if(root_view->parent()!=0){ return root_view->parent()->winId(); }
+ return root_view->winId();
+ }
public slots:
void syncRootSize();
bgstack15