|
|
@ -1001,7 +1001,7 @@ void Kaffeine::slotSleepAfterPlayMenu()
|
|
|
|
m_quitAfterPlay->setChecked(false); //Keep from checking both quits
|
|
|
|
m_quitAfterPlay->setChecked(false); //Keep from checking both quits
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_DPMS
|
|
|
|
#ifdef HAVE_DPMS
|
|
|
|
Display *dspl = qt_xdisplay();
|
|
|
|
Display *dspl = tqt_xdisplay();
|
|
|
|
int base;
|
|
|
|
int base;
|
|
|
|
bool hasDPMS = DPMSQueryExtension(dspl, &base, &base);
|
|
|
|
bool hasDPMS = DPMSQueryExtension(dspl, &base, &base);
|
|
|
|
if (!hasDPMS) // Check Xserver for DPMS
|
|
|
|
if (!hasDPMS) // Check Xserver for DPMS
|
|
|
@ -1022,7 +1022,7 @@ void Kaffeine::slotSleepAfterPlayMenu()
|
|
|
|
void Kaffeine::slotSleepAfterPlay()
|
|
|
|
void Kaffeine::slotSleepAfterPlay()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#ifdef HAVE_DPMS
|
|
|
|
#ifdef HAVE_DPMS
|
|
|
|
Display *dspl = qt_xdisplay();
|
|
|
|
Display *dspl = tqt_xdisplay();
|
|
|
|
CARD16 standby;
|
|
|
|
CARD16 standby;
|
|
|
|
CARD16 suspend;
|
|
|
|
CARD16 suspend;
|
|
|
|
CARD16 off;
|
|
|
|
CARD16 off;
|
|
|
|