Ticket #976: mythtv-dpms-lirc.patch
File mythtv-dpms-lirc.patch, 983 bytes (added by , 18 years ago) |
---|
-
libs/libmyth/lirc.cpp
8 8 #include <unistd.h> 9 9 10 10 #include "mythcontext.h" 11 #include "screensaver.h" 11 12 12 13 #include <iostream> 13 14 using namespace std; … … 92 93 QApplication::postEvent(mainWindow, new LircKeycodeEvent(code, 93 94 keycode, false)); 94 95 96 /* Although LIRC events are reinjected as keypress events, 97 * DPMS wakeup events are handled by the X11 server, and 98 * not by the Qt event handler. This event allows the 99 * remote control to "wake up" the monitor. 100 * 101 * Note: More extreme dual head setups might not want this. 102 */ 103 QApplication::postEvent(mainWindow, new ScreenSaverEvent( 104 ScreenSaverEvent::ssetReset)); 105 95 106 SpawnApp(); 96 107 } 97 108 }