From acd6cbd7deb552fb4329225a86f09db818c78639 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 25 Aug 2013 19:35:56 -0500 Subject: Fix ACPI event detection as a normal user This resolves Bug 1597 Do not display logout dialog if screensaver/lock dialog is active --- src/hardware.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/hardware.cpp') diff --git a/src/hardware.cpp b/src/hardware.cpp index c0aded6..cf1cdd9 100644 --- a/src/hardware.cpp +++ b/src/hardware.cpp @@ -39,6 +39,8 @@ #include "tdepowersave_debug.h" #include "privileges.h" +// #define USE_EVENT_DEVICES_DIRECTLY 1 + /*! The default constructor of the class HardwareInfo */ HardwareInfo::HardwareInfo() { kdDebugFuncIn(trace); @@ -55,7 +57,10 @@ HardwareInfo::HardwareInfo() { // initialize connection to the TDE hardware library m_hwdevices = TDEGlobal::hardwareDevices(); connect(m_hwdevices, TQT_SIGNAL(hardwareUpdated(TDEGenericDevice*)), this, TQT_SLOT(processHardwareChangedEvent(TDEGenericDevice*))); + +#ifdef USE_EVENT_DEVICES_DIRECTLY connect(m_hwdevices, TQT_SIGNAL(eventDeviceKeyPressed(unsigned int, TDEEventDevice*)), this, TQT_SLOT(processKeyPressEvent(unsigned int, TDEEventDevice*))); +#endif // update everything the first time update_info_ac_changed = true; -- cgit v1.2.3