Fixed missing focus problem.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -112,7 +112,7 @@ static gint gtk_frame_focus_in_callback( GtkWidget *widget,
|
|||||||
event.SetEventObject(g_activeFrame);
|
event.SetEventObject(g_activeFrame);
|
||||||
g_activeFrame->GetEventHandler()->ProcessEvent(event);
|
g_activeFrame->GetEventHandler()->ProcessEvent(event);
|
||||||
|
|
||||||
return TRUE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
@@ -142,7 +142,7 @@ static gint gtk_frame_focus_out_callback( GtkWidget *widget,
|
|||||||
|
|
||||||
g_activeFrame = NULL;
|
g_activeFrame = NULL;
|
||||||
|
|
||||||
return TRUE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
@@ -967,6 +967,9 @@ void wxTopLevelWindowGTK::OnInternalIdle()
|
|||||||
{
|
{
|
||||||
bool activate = g_sendActivateEvent != 0;
|
bool activate = g_sendActivateEvent != 0;
|
||||||
|
|
||||||
|
// if (!activate) wxPrintf( wxT("de") );
|
||||||
|
// wxPrintf( wxT("activate\n") );
|
||||||
|
|
||||||
// do it only once
|
// do it only once
|
||||||
g_sendActivateEvent = -1;
|
g_sendActivateEvent = -1;
|
||||||
|
|
||||||
|
@@ -112,7 +112,7 @@ static gint gtk_frame_focus_in_callback( GtkWidget *widget,
|
|||||||
event.SetEventObject(g_activeFrame);
|
event.SetEventObject(g_activeFrame);
|
||||||
g_activeFrame->GetEventHandler()->ProcessEvent(event);
|
g_activeFrame->GetEventHandler()->ProcessEvent(event);
|
||||||
|
|
||||||
return TRUE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
@@ -142,7 +142,7 @@ static gint gtk_frame_focus_out_callback( GtkWidget *widget,
|
|||||||
|
|
||||||
g_activeFrame = NULL;
|
g_activeFrame = NULL;
|
||||||
|
|
||||||
return TRUE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
@@ -967,6 +967,9 @@ void wxTopLevelWindowGTK::OnInternalIdle()
|
|||||||
{
|
{
|
||||||
bool activate = g_sendActivateEvent != 0;
|
bool activate = g_sendActivateEvent != 0;
|
||||||
|
|
||||||
|
// if (!activate) wxPrintf( wxT("de") );
|
||||||
|
// wxPrintf( wxT("activate\n") );
|
||||||
|
|
||||||
// do it only once
|
// do it only once
|
||||||
g_sendActivateEvent = -1;
|
g_sendActivateEvent = -1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user