aboutsummaryrefslogtreecommitdiff
path: root/src-qt5
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-06-29 13:49:55 -0400
committerKen Moore <ken@ixsystems.com>2017-06-29 13:49:55 -0400
commit8e9676547274d3bd63d5f54a583ceb79f775f359 (patch)
tree2c80f19237d3e73e432c92b592823ff94678fa36 /src-qt5
parentAdd in a "show" animation for windows when they appear (diff)
downloadlumina-8e9676547274d3bd63d5f54a583ceb79f775f359.tar.gz
lumina-8e9676547274d3bd63d5f54a583ceb79f775f359.tar.bz2
lumina-8e9676547274d3bd63d5f54a583ceb79f775f359.zip
Make sure we set the root flag that window opacity is supported.
Diffstat (limited to 'src-qt5')
-rw-r--r--src-qt5/core/libLumina/NativeWindowSystem.cpp7
-rw-r--r--src-qt5/core/libLumina/RootSubWindow.cpp2
2 files changed, 5 insertions, 4 deletions
diff --git a/src-qt5/core/libLumina/NativeWindowSystem.cpp b/src-qt5/core/libLumina/NativeWindowSystem.cpp
index 9359b9f2..d90b9dc1 100644
--- a/src-qt5/core/libLumina/NativeWindowSystem.cpp
+++ b/src-qt5/core/libLumina/NativeWindowSystem.cpp
@@ -65,7 +65,7 @@ public:
}
QStringList atoms;
- atoms << "WM_TAKE_FOCUS" << "WM_DELETE_WINDOW" << "WM_PROTOCOLS"
+ atoms << "WM_TAKE_FOCUS" << "WM_DELETE_WINDOW" << "WM_PROTOCOLS" << "_NET_WM_WINDOW_OPACITY"
<< "WM_CHANGE_STATE" << "_NET_SYSTEM_TRAY_OPCODE" << "_NET_SYSTEM_TRAY_ORIENTATION"
<< "_NET_SYSTEM_TRAY_VISUAL" << QString("_NET_SYSTEM_TRAY_S%1").arg(QString::number(QX11Info::appScreen()));
//Create all the requests for the atoms
@@ -560,14 +560,15 @@ void NativeWindowSystem::setRoot_supportedActions(){
obj->EWMH._NET_WM_ICON,
obj->EWMH._NET_WM_ICON_NAME,
obj->EWMH._NET_WM_DESKTOP,
- /*_NET_WINDOW_TYPE (and all the various types)*/
+ obj->ATOMS["_NET_WM_WINDOW_OPACITY"],
+ /*_NET_WINDOW_TYPE (and all the various types - 15 in total*/
obj->EWMH._NET_WM_WINDOW_TYPE, obj->EWMH._NET_WM_WINDOW_TYPE_DESKTOP, obj->EWMH._NET_WM_WINDOW_TYPE_DOCK,
obj->EWMH._NET_WM_WINDOW_TYPE_TOOLBAR, obj->EWMH._NET_WM_WINDOW_TYPE_MENU, obj->EWMH._NET_WM_WINDOW_TYPE_UTILITY,
obj->EWMH._NET_WM_WINDOW_TYPE_SPLASH, obj->EWMH._NET_WM_WINDOW_TYPE_DIALOG, obj->EWMH._NET_WM_WINDOW_TYPE_NORMAL,
obj->EWMH._NET_WM_WINDOW_TYPE_DROPDOWN_MENU, obj->EWMH._NET_WM_WINDOW_TYPE_POPUP_MENU, obj->EWMH._NET_WM_WINDOW_TYPE_TOOLTIP,
obj->EWMH._NET_WM_WINDOW_TYPE_NOTIFICATION, obj->EWMH._NET_WM_WINDOW_TYPE_COMBO, obj->EWMH._NET_WM_WINDOW_TYPE_DND,
};
- xcb_ewmh_set_supported(&obj->EWMH, QX11Info::appScreen(), 19,list);
+ xcb_ewmh_set_supported(&obj->EWMH, QX11Info::appScreen(), 20,list);
}
void NativeWindowSystem::setRoot_numberOfWorkspaces(QStringList names){
diff --git a/src-qt5/core/libLumina/RootSubWindow.cpp b/src-qt5/core/libLumina/RootSubWindow.cpp
index bf242eff..88dca132 100644
--- a/src-qt5/core/libLumina/RootSubWindow.cpp
+++ b/src-qt5/core/libLumina/RootSubWindow.cpp
@@ -265,10 +265,10 @@ void RootSubWindow::propertiesChanged(QList<NativeWindow::Property> props, QList
//qDebug() << "Got Visibility Change:" << vals[i];
if(vals[i].toBool()){
WinWidget->setVisible(true);
- this->show();
anim->setPropertyName("windowOpacity");
anim->setStartValue(0.0); anim->setEndValue(1.0);
anim->start();
+ this->show();
}
else{ this->hide(); }
break;
bgstack15