Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(575)

Unified Diff: src/platform/acpi/action_lid.sh

Issue 1690003: acpi: Give WM time to draw xscreensaver window on suspend. (Closed)
Patch Set: remove unrelated change Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/acpi/action_lid.sh
diff --git a/src/platform/acpi/action_lid.sh b/src/platform/acpi/action_lid.sh
index 4cab07c965a904aafa8d10bfb410b96958eaab43..dc0646c7eb46b7d779efffac5c18ef7905d5b261 100755
--- a/src/platform/acpi/action_lid.sh
+++ b/src/platform/acpi/action_lid.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -21,6 +21,12 @@ fi
export HOME=/home/chronos
/usr/bin/xscreensaver-command -l
+# - sleep for a bit to give the window manager time to draw the xscreensaver
+# window to the screen -- see http://crosbug.com/2250.
+# TODO: Remove this hack once we have a better solution in place that adds
+# some coordination between the screen locker and the window manager.
+sleep 0.5
+
# - suspend the cryptohome device
#CRYPTOHOME=/dev/mapper/cryptohome
#/usr/bin/test -b $CRYPTOHOME && /sbin/dmsetup suspend $CRYPTOHOME
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698