diff --git a/modules/juce_gui_basics/native/juce_linux_Windowing.cpp b/modules/juce_gui_basics/native/juce_linux_Windowing.cpp index 429d5227b8..49b214663f 100644 --- a/modules/juce_gui_basics/native/juce_linux_Windowing.cpp +++ b/modules/juce_gui_basics/native/juce_linux_Windowing.cpp @@ -2824,6 +2824,14 @@ private: ScopedXLock xlock; xchangeProperty (wndH, hints, hints, 32, &kwmHints, 1); } + + hints = Atoms::getIfExists ("_KDE_NET_WM_WINDOW_TYPE_OVERRIDE"); + + if (hints != None) + { + ScopedXLock xlock; + xchangeProperty (wndH, atoms.windowType, XA_ATOM, 32, &hints, 1); + } } void addWindowButtons (Window wndH) @@ -2898,9 +2906,7 @@ private: else netHints [0] = Atoms::getIfExists ("_NET_WM_WINDOW_TYPE_NORMAL"); - netHints[1] = Atoms::getIfExists ("_KDE_NET_WM_WINDOW_TYPE_OVERRIDE"); - - xchangeProperty (windowH, atoms.windowType, XA_ATOM, 32, &netHints, 2); + xchangeProperty (windowH, atoms.windowType, XA_ATOM, 32, &netHints, 1); int numHints = 0;