Ticket #976: mythtv-dpms-lirc.patch

File mythtv-dpms-lirc.patch, 983 bytes (added by anonymous, 14 years ago)
  • libs/libmyth/lirc.cpp

     
    88#include <unistd.h>
    99
    1010#include "mythcontext.h"
     11#include "screensaver.h"
    1112
    1213#include <iostream>
    1314using namespace std;
     
    9293                QApplication::postEvent(mainWindow, new LircKeycodeEvent(code,
    9394                                        keycode, false));
    9495
     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
    95106                SpawnApp();
    96107            }
    97108        }