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

Unified Diff: chrome/browser/chromeos/login/screen_locker.cc

Issue 4903002: Grab input after toplevel screen locker window is shown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 10 years, 1 month 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: chrome/browser/chromeos/login/screen_locker.cc
diff --git a/chrome/browser/chromeos/login/screen_locker.cc b/chrome/browser/chromeos/login/screen_locker.cc
index 7b4d6b55200a7adabc985ec7099fce3bad7fd623..49c0910d9f20ef2717b31cfe93ebe87cfe38f0a5 100644
--- a/chrome/browser/chromeos/login/screen_locker.cc
+++ b/chrome/browser/chromeos/login/screen_locker.cc
@@ -583,8 +583,6 @@ void ScreenLocker::Init() {
new GrabWidgetRootView(screen_lock_view_));
}
- lock_widget_->Show();
-
// Configuring the background url.
std::string url_string =
CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
@@ -604,6 +602,10 @@ void ScreenLocker::Init() {
lock_window_->SetContentsView(background_view_);
lock_window_->Show();
+ // Show lock_widget after the lock_window is shown so that
+ // we can grab inputs immediately.
+ lock_widget_->Show();
+
// Don't let X draw default background, which was causing flash on
// resume.
gdk_window_set_back_pixmap(lock_window_->GetNativeView()->window,
« 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