You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
1.1KB

  1. diff --git a/modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp b/modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp
  2. index 6d23372d9..32e159cf6 100644
  3. --- a/modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp
  4. +++ b/modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp
  5. @@ -2542,8 +2542,9 @@ void XWindowSystem::setWindowType (::Window windowH, int styleFlags) const
  6. Atom netHints [2];
  7. - if ((styleFlags & ComponentPeer::windowIsTemporary) != 0
  8. - || ((styleFlags & ComponentPeer::windowHasDropShadow) == 0 && Desktop::canUseSemiTransparentWindows()))
  9. + if (styleFlags & ComponentPeer::windowIsTemporary)
  10. + netHints [0] = XWindowSystemUtilities::Atoms::getIfExists (display, "_NET_WM_WINDOW_TYPE_TOOLTIP");
  11. + else if ((styleFlags & ComponentPeer::windowHasDropShadow) == 0 && Desktop::canUseSemiTransparentWindows())
  12. netHints [0] = XWindowSystemUtilities::Atoms::getIfExists (display, "_NET_WM_WINDOW_TYPE_COMBO");
  13. else
  14. netHints [0] = XWindowSystemUtilities::Atoms::getIfExists (display, "_NET_WM_WINDOW_TYPE_NORMAL");