X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8466fc74fa494ee7b4dccf36f7d2c292e2efd5a8..82d3ae4b8fe7132028a132ae15f734f38b09315e:/src/gtk/window.cpp?ds=sidebyside diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 7e637c83b0..b548b0460c 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -36,7 +36,7 @@ #include #include "wx/gtk/private.h" -#include "wx/gtk/win_gtk.h" +#include "wx/gtk/private/win_gtk.h" #include #include @@ -187,11 +187,6 @@ static bool g_captureWindowHasMouse = false; wxWindowGTK *g_focusWindow = (wxWindowGTK*) NULL; -// the last window which had the focus - this is normally never NULL (except -// if we never had focus at all) as even when g_focusWindow is NULL it still -// keeps its previous value -wxWindowGTK *g_focusWindowLast = (wxWindowGTK*) NULL; - // If a window get the focus set but has not been realized // yet, defer setting the focus to idle time. wxWindowGTK *g_delayedFocus = (wxWindowGTK*) NULL; @@ -1622,7 +1617,6 @@ gtk_window_focus_in_callback( GtkWidget * WXUNUSED(widget), if (win->m_imData) gtk_im_context_focus_in(win->m_imData->context); - g_focusWindowLast = g_focusWindow = win; wxLogTrace(TRACE_FOCUS, @@ -2671,7 +2665,7 @@ void wxWindowGTK::OnInternalIdle() } } - if (wxUpdateUIEvent::CanUpdate(this) && IsShown()) + if (wxUpdateUIEvent::CanUpdate(this) && IsShownOnScreen()) UpdateWindowUI(wxUPDATE_UI_FROMIDLE); }