X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/37fde1063be9c6fd74991a7aa3d99e6ebe65eede..d3f1209867593a3287a626110c04dd3234c1dcda:/src/gtk/taskbar.cpp diff --git a/src/gtk/taskbar.cpp b/src/gtk/taskbar.cpp index 2b50819305..4bb7f2dcf2 100644 --- a/src/gtk/taskbar.cpp +++ b/src/gtk/taskbar.cpp @@ -14,6 +14,9 @@ #if wxUSE_TASKBARICON +#include +#if GTK_CHECK_VERSION(2, 1, 0) + #include "wx/gtk/taskbarpriv.h" #ifndef WX_PRECOMP @@ -22,14 +25,9 @@ #include "wx/menu.h" #endif +#include #include -#ifdef __WXGTK20__ -#include -#if GTK_CHECK_VERSION(2, 1, 0) - -#include "gtk/gtk.h" - #include "eggtrayicon.h" wxTaskBarIconAreaBase::wxTaskBarIconAreaBase() @@ -73,6 +71,13 @@ bool wxTaskBarIconAreaBase::IsProtocolSupported() return (bool)s_supported; } +bool wxTaskBarIconAreaBase::IsDecorCacheable() const +{ + // Apparently, WM frame extents extend to full width of screen when window + // is in the tray. Don't cache, it's not useful for other windows. + return false; +} + //----------------------------------------------------------------------------- // Pop-up menu stuff //----------------------------------------------------------------------------- @@ -143,9 +148,7 @@ bool wxTaskBarIconAreaBase::DoPopupMenu( wxMenu *menu, int x, int y ) return true; } -#endif // wxUSE_MENUS_NATIVE -#endif // __WXGTK20__ +#endif // wxUSE_MENUS_NATIVE #endif // GTK_CHECK_VERSION(2, 1, 0) - #endif // wxUSE_TASKBARICON