]> git.tdb.fi Git - libs/gltk.git/commitdiff
Clear input focus when the focused widget is hidden
authorMikko Rasa <tdb@tdb.fi>
Wed, 20 Aug 2008 07:49:08 +0000 (07:49 +0000)
committerMikko Rasa <tdb@tdb.fi>
Wed, 20 Aug 2008 07:49:08 +0000 (07:49 +0000)
source/panel.cpp

index 3123db41bccd2dc6036a7fd89a1facfdea593e06..97c9ca4f3438d336cc77f1104dcad9e2d379ecf2 100644 (file)
@@ -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)