summaryrefslogtreecommitdiffstats
path: root/kdecore/kdetcompmgr.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-15 01:49:14 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-15 01:49:14 +0000
commit79a4d6dfad2786fb412167638c5beb4af614b9e8 (patch)
tree5a764aab2aaa4a7485895662a59d22a39bcdaee6 /kdecore/kdetcompmgr.cpp
parent7d7b2c04e147670ed65c5be42de7b7b131122856 (diff)
downloadtdelibs-79a4d6dfad2786fb412167638c5beb4af614b9e8.tar.gz
tdelibs-79a4d6dfad2786fb412167638c5beb4af614b9e8.zip
Use true transparency when drawing menu shadows for apps that support ARGB visuals
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1247204 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/kdetcompmgr.cpp')
-rw-r--r--kdecore/kdetcompmgr.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/kdecore/kdetcompmgr.cpp b/kdecore/kdetcompmgr.cpp
index 0b143d5de..c5cbd415f 100644
--- a/kdecore/kdetcompmgr.cpp
+++ b/kdecore/kdetcompmgr.cpp
@@ -49,16 +49,17 @@ int main(int argc, char **argv)
KApplication app;
app.detectCompositionManagerAvailable();
- if (!app.isCompositionManagerAvailable()) {
+// if (!app.isCompositionManagerAvailable()) {
KConfig config("kwinrc", true);
config.setGroup( "Notification Messages" );
if (config.readBoolEntry("UseTranslucency",false)) {
- app.detectCompositionManagerAvailable(true);
+ app.detectCompositionManagerAvailable(true, true);
return 2;
}
else {
+ app.detectCompositionManagerAvailable(true, false);
return 0;
}
- }
+// }
}