From 3d04d550b8ba1336c36f569d924b6b425bfc47f3 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 20 Aug 2008 07:49:08 +0000 Subject: [PATCH] Clear input focus when the focused widget is hidden --- source/panel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/panel.cpp b/source/panel.cpp index 3123db4..97c9ca4 100644 --- a/source/panel.cpp +++ b/source/panel.cpp @@ -156,6 +156,8 @@ void Panel::child_hidden(Widget &wdg) { if(&wdg==pointer_focus) set_pointer_focus(0, 0); + if(&wdg==input_focus) + set_input_focus(0); } void Panel::grab_pointer(Widget &wdg) -- 2.43.0