summaryrefslogtreecommitdiff
path: root/plugins/unityshell
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2016-03-09 18:30:50 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2016-03-09 18:30:50 +0100
commitbd4f8127fcd9945e3c27e24518f0d557c5f651cf (patch)
treebc8e6a78f3e708d5d8ebafb0a03b1a0cb80d699f /plugins/unityshell
parent9559b59b73baea406d0d883fe5a20f97df1192bf (diff)
UnityScreen: expose _UNITY_SHELL atom on _NET_SUPPORTED
Just a way to be sure that we're running in unity (bzr r3983.15.10)
Diffstat (limited to 'plugins/unityshell')
-rw-r--r--plugins/unityshell/src/unityshell.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp
index 265ed89bc..a4108cc9a 100644
--- a/plugins/unityshell/src/unityshell.cpp
+++ b/plugins/unityshell/src/unityshell.cpp
@@ -178,6 +178,7 @@ const std::string LOCKED_STAMP = "locked.stamp";
namespace atom
{
+Atom _UNITY_SHELL = 0;
Atom _UNITY_SAVED_WINDOW_SHAPE = 0;
}
@@ -318,6 +319,7 @@ UnityScreen::UnityScreen(CompScreen* screen)
GLScreenInterface::setHandler(gScreen);
ScaleScreenInterface::setHandler(sScreen);
+ atom::_UNITY_SHELL = XInternAtom(screen->dpy(), "_UNITY_SHELL", False);
atom::_UNITY_SAVED_WINDOW_SHAPE = XInternAtom(screen->dpy(), "_UNITY_SAVED_WINDOW_SHAPE", False);
screen->updateSupportedWmHints();
@@ -1778,6 +1780,7 @@ void UnityScreen::determineNuxDamage(CompRegion& nux_damage)
void UnityScreen::addSupportedAtoms(std::vector<Atom>& atoms)
{
screen->addSupportedAtoms(atoms);
+ atoms.push_back(atom::_UNITY_SHELL);
atoms.push_back(atom::_UNITY_SAVED_WINDOW_SHAPE);
deco_manager_->AddSupportedAtoms(atoms);
}