Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 47922 | Differences between
and this patch

Collapse All | Expand All

(-)xc/programs/Xserver/os/WaitFor.c (+6 lines)
Lines 666-679 Link Here
666
    if (DPMSStandbyTime > 0) {
666
    if (DPMSStandbyTime > 0) {
667
        DPMSStandbyTimer = TimerSet(DPMSStandbyTimer, 0, DPMSStandbyTime,
667
        DPMSStandbyTimer = TimerSet(DPMSStandbyTimer, 0, DPMSStandbyTime,
668
                                    DPMSStandbyTimerExpire, NULL);
668
                                    DPMSStandbyTimerExpire, NULL);
669
    } else if (DPMSStandbyTimer) {
670
	TimerCancel(DPMSStandbyTimer);
669
    }
671
    }
670
    if (DPMSSuspendTime > 0) {
672
    if (DPMSSuspendTime > 0) {
671
        DPMSSuspendTimer = TimerSet(DPMSSuspendTimer, 0, DPMSSuspendTime,
673
        DPMSSuspendTimer = TimerSet(DPMSSuspendTimer, 0, DPMSSuspendTime,
672
                                    DPMSSuspendTimerExpire, NULL);
674
                                    DPMSSuspendTimerExpire, NULL);
675
    } else if (DPMSSuspendTimer) {
676
	TimerCancel(DPMSSuspendTimer);
673
    }
677
    }
674
    if (DPMSOffTime > 0) {
678
    if (DPMSOffTime > 0) {
675
        DPMSOffTimer = TimerSet(DPMSOffTimer, 0, DPMSOffTime,
679
        DPMSOffTimer = TimerSet(DPMSOffTimer, 0, DPMSOffTime,
676
                                DPMSOffTimerExpire, NULL);
680
                                DPMSOffTimerExpire, NULL);
681
    } else if (DPMSOffTimer) {
682
	TimerCancel(DPMSOffTimer);
677
    }
683
    }
678
}
684
}
679
#endif
685
#endif

Return to bug 47922