Dominique Leuenberger 2015-06-22 13:11:28 +00:00 committed by Git OBS Bridge
parent a434ec56e7
commit 9e8af56684
3 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,18 @@
Index: gnome-settings-daemon-3.12.0.1/plugins/screensaver-proxy/gsd-screensaver-proxy-manager.c
===================================================================
--- gnome-settings-daemon-3.12.0.1.orig/plugins/screensaver-proxy/gsd-screensaver-proxy-manager.c
+++ gnome-settings-daemon-3.12.0.1/plugins/screensaver-proxy/gsd-screensaver-proxy-manager.c
@@ -253,7 +253,12 @@ handle_method_call (GDBusConnection
} else if (g_strcmp0 (method_name, "UnThrottle") == 0) {
g_dbus_method_invocation_return_value (invocation, NULL);
} else if (g_strcmp0 (method_name, "Lock") == 0) {
- goto unimplemented;
+ GVariant *ret;
+ ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (G_DBUS_PROXY (manager->priv->session)),
+ "Lock",
+ NULL,
+ G_DBUS_CALL_FLAGS_NONE,
+ -1, NULL, NULL);
} else if (g_strcmp0 (method_name, "SimulateUserActivity") == 0) {
goto unimplemented;
} else if (g_strcmp0 (method_name, "GetActive") == 0) {

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jun 22 13:10:53 UTC 2015 - dimstar@opensuse.org
- Add conditional pkgconfig(wayland-client) BuildRequires, based
on bcond wayland.
-------------------------------------------------------------------
Tue May 12 18:34:15 UTC 2015 - zaitor@opensuse.org

View File

@ -85,6 +85,9 @@ BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(xkbfile)
BuildRequires: pkgconfig(xtst)
%if %{with wayland}
BuildRequires: pkgconfig(wayland-client)
%endif
Requires: gsettings-desktop-schemas
# g-s-d uses the pkexec binary
Requires: polkit