Fix TDM FTBFS with -DWITH_XRANDR=OFF.

This resolves bug report 1582.
pull/2/head
Alexander Golubev 11 years ago committed by Darrell Anderson
parent 5210484c85
commit c70d52a514

@ -128,11 +128,13 @@ void GreeterApp::init()
} }
void GreeterApp::deviceChanged(TDEGenericDevice* device) { void GreeterApp::deviceChanged(TDEGenericDevice* device) {
#ifdef WITH_XRANDR
if (device->type() == TDEGenericDeviceType::Monitor) { if (device->type() == TDEGenericDeviceType::Monitor) {
KRandrSimpleAPI *randrsimple = new KRandrSimpleAPI(); KRandrSimpleAPI *randrsimple = new KRandrSimpleAPI();
randrsimple->applyHotplugRules(KDE_CONFDIR); randrsimple->applyHotplugRules(KDE_CONFDIR);
delete randrsimple; delete randrsimple;
} }
#endif // WITH_XRANDR
} }
void void

Loading…
Cancel
Save