From: Mikko Rasa Date: Wed, 20 Aug 2008 07:49:08 +0000 (+0000) Subject: Clear input focus when the focused widget is hidden X-Git-Tag: 1.0~7 X-Git-Url: http://git.tdb.fi/?p=libs%2Fgltk.git;a=commitdiff_plain;h=3d04d550b8ba1336c36f569d924b6b425bfc47f3 Clear input focus when the focused widget is hidden --- 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)