From 1484de58a8b3493604e3ea2a0b7eba97bb2bc4e4 Mon Sep 17 00:00:00 2001 From: Ryan Leavengood Date: Thu, 26 Jul 2012 22:51:45 -0400 Subject: [PATCH] Focus the Team Monitor list view on Show(). Fixes #8775. --- .../devices/keyboard/TeamMonitorWindow.cpp | 10 ++++++++-- .../input_server/devices/keyboard/TeamMonitorWindow.h | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/add-ons/input_server/devices/keyboard/TeamMonitorWindow.cpp b/src/add-ons/input_server/devices/keyboard/TeamMonitorWindow.cpp index 80984041ea..25706d9cd9 100644 --- a/src/add-ons/input_server/devices/keyboard/TeamMonitorWindow.cpp +++ b/src/add-ons/input_server/devices/keyboard/TeamMonitorWindow.cpp @@ -260,6 +260,14 @@ TeamMonitorWindow::~TeamMonitorWindow() } +void +TeamMonitorWindow::Show() +{ + fListView->MakeFocus(); + BWindow::Show(); +} + + void TeamMonitorWindow::MessageReceived(BMessage* msg) { @@ -416,8 +424,6 @@ TeamMonitorWindow::UpdateList() } fRestartButton->SetEnabled(!desktopRunning); - - fListView->MakeFocus(); } diff --git a/src/add-ons/input_server/devices/keyboard/TeamMonitorWindow.h b/src/add-ons/input_server/devices/keyboard/TeamMonitorWindow.h index 69c551e4c0..6a79829b65 100644 --- a/src/add-ons/input_server/devices/keyboard/TeamMonitorWindow.h +++ b/src/add-ons/input_server/devices/keyboard/TeamMonitorWindow.h @@ -27,6 +27,7 @@ public: virtual ~TeamMonitorWindow(); virtual void MessageReceived(BMessage* message); + virtual void Show(); virtual bool QuitRequested(); void Enable();