Avoid setting "pending" focus to a window which already has the focus.
This commit is contained in:
@@ -4518,7 +4518,9 @@ void wxWindowGTK::SetFocus()
|
|||||||
// Because we want to FindFocus() call immediately following
|
// Because we want to FindFocus() call immediately following
|
||||||
// foo->SetFocus() to return foo, we have to keep track of "pending" focus
|
// foo->SetFocus() to return foo, we have to keep track of "pending" focus
|
||||||
// ourselves.
|
// ourselves.
|
||||||
gs_pendingFocus = this;
|
gs_pendingFocus = NULL;
|
||||||
|
if (gs_currentFocus != this)
|
||||||
|
gs_pendingFocus = this;
|
||||||
|
|
||||||
GtkWidget *widget = m_wxwindow ? m_wxwindow : m_focusWidget;
|
GtkWidget *widget = m_wxwindow ? m_wxwindow : m_focusWidget;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user