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

Unified Diff: ash/wm/activation_controller.cc

Issue 9181012: Don't activate a window if screen is locked. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reduced the scope Created 8 years, 11 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 | « ash/shell.cc ('k') | ui/aura/root_window.h » ('j') | ui/aura/window.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/activation_controller.cc
diff --git a/ash/wm/activation_controller.cc b/ash/wm/activation_controller.cc
index 5ea7466c0f2a1a89222bf5f6b029fa1b0bbc7805..794452d8531169beb82ac25cc98d142c4fae05b2 100644
--- a/ash/wm/activation_controller.cc
+++ b/ash/wm/activation_controller.cc
@@ -40,7 +40,7 @@ bool SupportsChildActivation(aura::Window* window) {
// supports activation/deactivation.
bool CanActivateWindow(aura::Window* window) {
return window &&
- window->IsVisible() &&
+ window->CanReceiveEvents() &&
sky 2012/01/12 21:11:36 One downside of this is that if the lock screen is
oshima 2012/01/12 21:32:50 good point. done.
(!aura::client::GetActivationDelegate(window) ||
aura::client::GetActivationDelegate(window)->ShouldActivate(NULL)) &&
SupportsChildActivation(window->parent());
« no previous file with comments | « ash/shell.cc ('k') | ui/aura/root_window.h » ('j') | ui/aura/window.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698