X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/527343602e91d60c65fb7589a6ddcf4683930c78..8e190f0ed9c242e6df5fd4dd99fdaf6c9dea1cda:/src/unix/utilsx11.cpp diff --git a/src/unix/utilsx11.cpp b/src/unix/utilsx11.cpp index 67e641c3cb..51736ee332 100644 --- a/src/unix/utilsx11.cpp +++ b/src/unix/utilsx11.cpp @@ -41,7 +41,6 @@ #endif // Various X11 Atoms used in this file: -static Atom _NET_WM_ICON = 0; static Atom _NET_WM_STATE = 0; static Atom _NET_WM_STATE_FULLSCREEN = 0; static Atom _NET_WM_STATE_STAYS_ON_TOP = 0; @@ -106,10 +105,13 @@ private: // Setting icons for window manager: // ---------------------------------------------------------------------------- +#if wxUSE_IMAGE && !wxUSE_NANOX + +static Atom _NET_WM_ICON = 0; + void wxSetIconsX11(WXDisplay* display, WXWindow window, const wxIconBundle& ib) { -#if !wxUSE_NANOX size_t size = 0; const size_t numIcons = ib.GetIconCount(); @@ -184,9 +186,9 @@ wxSetIconsX11(WXDisplay* display, WXWindow window, const wxIconBundle& ib) WindowCast(window), _NET_WM_ICON ); } -#endif // !wxUSE_NANOX } +#endif // wxUSE_IMAGE && !wxUSE_NANOX // ---------------------------------------------------------------------------- // Fullscreen mode: