From c5338fa09cefa23c288de93a70a4f6fa8e23cc78 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 21 Jun 2019 16:04:41 +0200 Subject: [PATCH] Backport juce fix Signed-off-by: falkTX --- .../juce_gui_basics/native/juce_linux_X11_Windowing.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/modules/juce_gui_basics/native/juce_linux_X11_Windowing.cpp b/source/modules/juce_gui_basics/native/juce_linux_X11_Windowing.cpp index 5b82036d7..6a6bd5f0a 100644 --- a/source/modules/juce_gui_basics/native/juce_linux_X11_Windowing.cpp +++ b/source/modules/juce_gui_basics/native/juce_linux_X11_Windowing.cpp @@ -1903,6 +1903,9 @@ public: ScopedXLock xlock (display); XGetInputFocus (display, &focusedWindow, &revert); + if (focusedWindow == PointerRoot) + return false; + return isParentWindowOf (focusedWindow); }