summaryrefslogtreecommitdiffstats
path: root/tdecore/kdetcompmgr.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-05-24 10:18:34 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-05-24 10:18:34 -0500
commit41ea89f79d28c456b296e8ddcce0a12c21e13f94 (patch)
treed643fe5a04c5291ff1847b76cd045c47df6100e4 /tdecore/kdetcompmgr.cpp
parent08c816fe5d4eba7bc34c354c6958f1117f1a63a4 (diff)
downloadtdelibs-41ea89f79d28c456b296e8ddcce0a12c21e13f94.tar.gz
tdelibs-41ea89f79d28c456b296e8ddcce0a12c21e13f94.zip
Fix composition extension detection
Diffstat (limited to 'tdecore/kdetcompmgr.cpp')
-rw-r--r--tdecore/kdetcompmgr.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/tdecore/kdetcompmgr.cpp b/tdecore/kdetcompmgr.cpp
index bfc3ac66e..8b9b4804e 100644
--- a/tdecore/kdetcompmgr.cpp
+++ b/tdecore/kdetcompmgr.cpp
@@ -84,7 +84,6 @@ int main(int argc, char **argv)
if (lSize > 254)
lSize = 254;
rewind (pFile);
- size_t result = fread (buffer, 1, lSize, pFile);
fclose(pFile);
kompmgrpid = atoi(buffer);
}
@@ -97,9 +96,7 @@ int main(int argc, char **argv)
}
}
-// app.detectCompositionManagerAvailable();
-
-// if (!app.isCompositionManagerAvailable()) {
+ if (app.detectCompositionManagerAvailable(false, false)) { // Perform a shallow check for the composite extension (a deep check would cause noticeable flicker)
KConfig config2("twinrc", true);
config2.setGroup( "Notification Messages" );
if (config2.readBoolEntry("UseTranslucency",false)) {
@@ -110,6 +107,10 @@ int main(int argc, char **argv)
app.detectCompositionManagerAvailable(true, false);
return 0;
}
-// }
+ }
+ else {
+ app.detectCompositionManagerAvailable(true, false);
+ return 1;
+ }
}