diff options
Diffstat (limited to 'aura/window_manager.cc')
-rw-r--r-- | aura/window_manager.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/aura/window_manager.cc b/aura/window_manager.cc index ea07281..b9423b3 100644 --- a/aura/window_manager.cc +++ b/aura/window_manager.cc @@ -5,6 +5,7 @@ #include "aura/window_manager.h" #include "aura/event.h" +#include "aura/focus_manager.h" #include "aura/window.h" #include "aura/window_delegate.h" @@ -25,6 +26,9 @@ WindowManager::~WindowManager() { bool WindowManager::OnMouseEvent(MouseEvent* event) { switch (event->type()) { case ui::ET_MOUSE_PRESSED: + // TODO(beng): some windows (e.g. disabled ones, tooltips, etc) may not be + // focusable. + owner_->GetFocusManager()->SetFocusedWindow(owner_); window_component_ = owner_->delegate()->GetNonClientComponent(event->location()); MoveWindowToFront(); |