From c70d52a51432c73443a65ddb3e18636e70c8f1e2 Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Thu, 1 Aug 2013 19:02:44 -0500 Subject: Fix TDM FTBFS with -DWITH_XRANDR=OFF. This resolves bug report 1582. --- tdm/kfrontend/kgapp.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tdm') 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 -- cgit v1.2.1