aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/NativeWindow.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-07-13 14:02:59 -0400
committerKen Moore <ken@ixsystems.com>2017-07-13 14:04:25 -0400
commit6a2af03c68033a9683de619b4ae6493a4f7254b7 (patch)
treeea0d5ca678e1177c3efa546664d09557c4849727 /src-qt5/core/libLumina/NativeWindow.cpp
parentinital commit of the lumina-theme-engine (diff)
downloadlumina-6a2af03c68033a9683de619b4ae6493a4f7254b7.tar.gz
lumina-6a2af03c68033a9683de619b4ae6493a4f7254b7.tar.bz2
lumina-6a2af03c68033a9683de619b4ae6493a4f7254b7.zip
Large update to the window embedding systems - almost have the compositing up and running.
Diffstat (limited to 'src-qt5/core/libLumina/NativeWindow.cpp')
-rw-r--r--src-qt5/core/libLumina/NativeWindow.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src-qt5/core/libLumina/NativeWindow.cpp b/src-qt5/core/libLumina/NativeWindow.cpp
index 819661d5..ff7322f6 100644
--- a/src-qt5/core/libLumina/NativeWindow.cpp
+++ b/src-qt5/core/libLumina/NativeWindow.cpp
@@ -11,12 +11,10 @@ NativeWindow::NativeWindow(WId id) : QObject(){
winid = id;
frameid = 0;
dmgID = 0;
- //WIN = QWindow::fromWinId(winid);
}
NativeWindow::~NativeWindow(){
hash.clear();
- //WIN->deleteLater(); //This class only deals with Native windows which were created outside the app - they need to be cleaned up outside the app too
}
void NativeWindow::addFrameWinID(WId fid){
@@ -43,10 +41,6 @@ unsigned int NativeWindow::damageId(){
return dmgID;
}
-/*QWindow* NativeWindow::window(){
- return WIN;
-}*/
-
QVariant NativeWindow::property(NativeWindow::Property prop){
if(hash.contains(prop)){ return hash.value(prop); }
else if(prop == NativeWindow::RelatedWindows){ return QVariant::fromValue(relatedTo); }
@@ -93,9 +87,11 @@ QRect NativeWindow::geometry(){
QRect geom( hash.value(NativeWindow::GlobalPos).toPoint(), hash.value(NativeWindow::Size).toSize() );
//Now adjust the window geom by the frame margins
QList<int> frame = hash.value(NativeWindow::FrameExtents).value< QList<int> >(); //Left,Right,Top,Bottom
+ qDebug() << "Calculate Geometry:" << geom << frame;
if(frame.length()==4){
geom = geom.adjusted( -frame[0], -frame[2], frame[1], frame[3] );
}
+ qDebug() << " - Total:" << geom;
return geom;
}
// ==== PUBLIC SLOTS ===
bgstack15