idle-monitor: Fix duplicate return value of ResetIdletime call
The signal handler must return TRUE as the invocation is already handled by returning an error. Also update the error message a bit to clarify that the API exists only for testing purposes. https://gitlab.gnome.org/GNOME/mutter/merge_requests/457
This commit is contained in:
parent
9e1c8e2c22
commit
ef2153739c
@ -55,8 +55,8 @@ handle_reset_idletime (MetaDBusIdleMonitor *skeleton,
|
||||
g_dbus_method_invocation_return_error_literal (invocation,
|
||||
G_DBUS_ERROR,
|
||||
G_DBUS_ERROR_UNKNOWN_METHOD,
|
||||
"No such method");
|
||||
return FALSE;
|
||||
"This method is for testing purposes only. MUTTER_DEBUG_RESET_IDLETIME must be set to use it");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
meta_idle_monitor_reset_idletime (meta_idle_monitor_get_core ());
|
||||
|
Loading…
Reference in New Issue
Block a user