diff options
author | Ken Moore <ken@ixsystems.com> | 2017-06-27 10:21:41 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-06-27 10:21:41 -0400 |
commit | 91c9e6f4c7b5aad491d5f8fdd892e038b2cd9656 (patch) | |
tree | 3f21402cf45533e7aa7aaee5432fbef7713370bf /src-qt5 | |
parent | Add some more debugging. (diff) | |
download | lumina-91c9e6f4c7b5aad491d5f8fdd892e038b2cd9656.tar.gz lumina-91c9e6f4c7b5aad491d5f8fdd892e038b2cd9656.tar.bz2 lumina-91c9e6f4c7b5aad491d5f8fdd892e038b2cd9656.zip |
Start working on the RootSubWindow interactions.
Diffstat (limited to 'src-qt5')
-rw-r--r-- | src-qt5/core/libLumina/NativeWindowSystem.cpp | 5 | ||||
-rw-r--r-- | src-qt5/core/libLumina/RootSubWindow.cpp | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src-qt5/core/libLumina/NativeWindowSystem.cpp b/src-qt5/core/libLumina/NativeWindowSystem.cpp index 49839a69..d25d441f 100644 --- a/src-qt5/core/libLumina/NativeWindowSystem.cpp +++ b/src-qt5/core/libLumina/NativeWindowSystem.cpp @@ -408,7 +408,7 @@ void NativeWindowSystem::UpdateWindowProperties(NativeWindow* win, QList< Native // === PUBLIC SLOTS === -//These are the slots which are only used by the desktop system itself or the NativeWindowEventFilter +//These are the slots which are only used by the desktop system itself or the NativeEventFilter void NativeWindowSystem::RegisterVirtualRoot(WId){ } @@ -476,6 +476,7 @@ void NativeWindowSystem::NewTrayWindowDetected(WId id){ void NativeWindowSystem::WindowCloseDetected(WId id){ NativeWindow *win = findWindow(id); + qDebug() << "Got Window Closed" << id << win; if(win!=0){ NWindows.removeAll(win); win->emit WindowClosed(id); @@ -491,7 +492,7 @@ void NativeWindowSystem::WindowCloseDetected(WId id){ } void NativeWindowSystem::WindowPropertyChanged(WId id, NativeWindow::Property prop){ - //NOTE: This is triggered by the NativeWindowEventFilter - not by changes to the NativeWindow objects themselves + //NOTE: This is triggered by the NativeEventFilter - not by changes to the NativeWindow objects themselves NativeWindow *win = findWindow(id); if(win==0){ win = findTrayWindow(id); } if(win!=0){ diff --git a/src-qt5/core/libLumina/RootSubWindow.cpp b/src-qt5/core/libLumina/RootSubWindow.cpp index d00a3a75..3c8e5b97 100644 --- a/src-qt5/core/libLumina/RootSubWindow.cpp +++ b/src-qt5/core/libLumina/RootSubWindow.cpp @@ -155,7 +155,7 @@ void RootSubWindow::initWindowFrame(){ maxB->setObjectName("Button_Maximize"); otherM->setObjectName("Menu_Actions"); titleLabel->setObjectName("Label_Title"); - this->setStyleSheet("QWidget#WindowFrame{background-color: darkblue;} QWidget#Label_Title{background-color: transparent; color: white; }"); + this->setStyleSheet("QWidget#WindowFrame{background-color: rgba(0,0,0,125);} QWidget#Label_Title{background-color: transparent; color: white; }"); //And adjust the margins mainLayout->setContentsMargins(WIN_BORDER,WIN_BORDER,WIN_BORDER,WIN_BORDER); mainLayout->setSpacing(0); @@ -227,7 +227,7 @@ void RootSubWindow::startResizing(){ void RootSubWindow::propertiesChanged(QList<NativeWindow::Property> props, QList<QVariant> vals){ for(int i=0; i<props.length() && i<vals.length(); i++){ if(vals[i].isNull()){ return; } //not the same as a default/empty value - the property has just not been set yet - //qDebug() << "Set Window Property:" << props[i] << vals[i]; + qDebug() << "RootSubWindow: Property Changed:" << props[i] << vals[i]; switch(props[i]){ case NativeWindow::Visible: if(vals[i].toBool()){ this->show(); } |