summaryrefslogtreecommitdiffstats
path: root/tdm/kfrontend/kgapp.cpp
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2013-08-01 19:02:44 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2013-08-01 19:02:44 -0500
commitc70d52a51432c73443a65ddb3e18636e70c8f1e2 (patch)
tree67fe85375e3284c069c86339e78b32561b8aa5ac /tdm/kfrontend/kgapp.cpp
parent5210484c85b7258ae28d2d551839de96e848cf2c (diff)
downloadtdebase-c70d52a51432c73443a65ddb3e18636e70c8f1e2.tar.gz
tdebase-c70d52a51432c73443a65ddb3e18636e70c8f1e2.zip
Fix TDM FTBFS with -DWITH_XRANDR=OFF.
This resolves bug report 1582.
Diffstat (limited to 'tdm/kfrontend/kgapp.cpp')
-rw-r--r--tdm/kfrontend/kgapp.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tdm/kfrontend/kgapp.cpp b/tdm/kfrontend/kgapp.cpp
index bf71e433f..9a765cb68 100644
--- a/tdm/kfrontend/kgapp.cpp
+++ b/tdm/kfrontend/kgapp.cpp
@@ -128,11 +128,13 @@ void GreeterApp::init()
}
void GreeterApp::deviceChanged(TDEGenericDevice* device) {
+#ifdef WITH_XRANDR
if (device->type() == TDEGenericDeviceType::Monitor) {
KRandrSimpleAPI *randrsimple = new KRandrSimpleAPI();
randrsimple->applyHotplugRules(KDE_CONFDIR);
delete randrsimple;
}
+#endif // WITH_XRANDR
}
void