mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 11:00:54 -05:00
01a0fa9437
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. https://bugzilla.gnome.org/show_bug.cgi?id=705942
38 lines
994 B
XML
38 lines
994 B
XML
<!DOCTYPE node PUBLIC
|
|
'-//freedesktop//DTD D-BUS Object Introspection 1.0//EN'
|
|
'http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd'>
|
|
<node>
|
|
<!--
|
|
org.gnome.Mutter.IdleMonitor:
|
|
@short_description: idle monitor interface
|
|
|
|
This interface is used by gnome-desktop to implement
|
|
user activity monitoring.
|
|
-->
|
|
|
|
<interface name="org.gnome.Mutter.IdleMonitor">
|
|
<method name="GetIdletime">
|
|
<arg name="idletime" direction="out" type="t"/>
|
|
</method>
|
|
|
|
<method name="AddIdleWatch">
|
|
<arg name="interval" direction="in" type="t" />
|
|
<arg name="id" direction="out" type="u" />
|
|
</method>
|
|
|
|
<method name="AddUserActiveWatch">
|
|
<arg name="id" direction="out" type="u" />
|
|
</method>
|
|
|
|
<method name="RemoveWatch">
|
|
<arg name="id" direction="in" type="u" />
|
|
</method>
|
|
|
|
<method name="ResetIdletime"/>
|
|
|
|
<signal name="WatchFired">
|
|
<arg name="id" direction="out" type="u" />
|
|
</signal>
|
|
</interface>
|
|
</node>
|