From: Marc Deslauriers <marc.deslauriers@canonical.com>
Date: Fri, 9 Mar 2012 15:42:58 +0100
Subject: Add a new preference to lock the screen when the system suspends.

Forwarded: No, likely a Ubuntu-specific preference
Bug-Ubuntu: https://bugs.launchpad.net/bugs/938076
---
 schemas/org.gnome.desktop.screensaver.gschema.xml.in | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/schemas/org.gnome.desktop.screensaver.gschema.xml.in b/schemas/org.gnome.desktop.screensaver.gschema.xml.in
index 5c2db2a..5c4d40e 100644
--- a/usr/share/glib-2.0/schemas/org.gnome.desktop.screensaver.gschema.xml
+++ b/usr/share/glib-2.0/schemas/org.gnome.desktop.screensaver.gschema.xml
@@ -26,6 +26,11 @@
       <summary>Show full name in the lock screen</summary>
       <description>Whether the user’s full name is shown in the lock screen or not. This only affects the screen shield, the name is always shown in the unlock dialog.</description>
     </key>
+    <key name="ubuntu-lock-on-suspend" type="b">
+      <default>true</default>
+      <summary>Lock on suspend</summary>
+      <description>Set this to TRUE to lock the screen when the system suspends.</description>
+    </key>
     <key name="embedded-keyboard-enabled" type="b">
       <default>false</default>
       <summary>Allow embedding a keyboard into the window</summary>
