Bug fix in FDialog onWindowActive() for combined setFocus() and activateWindow()

This commit is contained in:
Markus Gans 2016-06-16 22:50:34 +02:00
parent 07fbe91cea
commit 203c50f4e6
2 changed files with 13 additions and 8 deletions

View File

@ -1,5 +1,7 @@
2016-06-16 Markus Gans <guru.mail@muenster.de> 2016-06-16 Markus Gans <guru.mail@muenster.de>
* Bug fix in FTerm updateVTerm() for updates from vdesktop * Bug fix in FTerm updateVTerm() for updates from vdesktop
* Bug fix in FDialog onWindowActive() for combined setFocus()
and activateWindow()
2016-06-13 Markus Gans <guru.mail@muenster.de> 2016-06-13 Markus Gans <guru.mail@muenster.de>
* Improved title bar menu integration * Improved title bar menu integration

View File

@ -724,6 +724,8 @@ void FDialog::onWindowActive (FEvent*)
if ( isVisible() && isShown() ) if ( isVisible() && isShown() )
drawTitleBar(); drawTitleBar();
if ( ! FWidget::getFocusWidget() )
{
if ( focus_widget && focus_widget->isVisible() && focus_widget->isShown() ) if ( focus_widget && focus_widget->isVisible() && focus_widget->isShown() )
{ {
focus_widget->setFocus(); focus_widget->setFocus();
@ -734,6 +736,7 @@ void FDialog::onWindowActive (FEvent*)
else else
focusFirstChild(); focusFirstChild();
} }
}
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void FDialog::onWindowInactive (FEvent*) void FDialog::onWindowInactive (FEvent*)