• Bastien Nocera's avatar
    idle-monitor: Add ResetIdletime API, for testing purposes · 01a0fa94
    Bastien Nocera authored
    The ResetIdletime API can be used instead of an "XTest" binary to
    programmatically reset the idle time, as if the user pressed a button on
    a keyboard.
    This is necessary since we stopped using the XSync extension to monitor
    idletimes, as it didn't consider inhibitors as busy, and mutter's
    clutter code ignores "Core Events" as generated by XTest.
    This patch will require minimal changes to gnome-settings-daemon's power
    test suite so that "key press" idletime resets are triggered through
    this D-Bus interface rather than through XTest and a roundtrip through
    the X server.
org.gnome.Mutter.IdleMonitor.xml 994 Bytes