diff --git a/modules/juce_gui_basics/native/juce_linux_Windowing.cpp b/modules/juce_gui_basics/native/juce_linux_Windowing.cpp index 20649b537e..fe867db167 100644 --- a/modules/juce_gui_basics/native/juce_linux_Windowing.cpp +++ b/modules/juce_gui_basics/native/juce_linux_Windowing.cpp @@ -2321,12 +2321,11 @@ private: {} } - int getAllEventsMask() const noexcept + static int getAllEventsMask() noexcept { return NoEventMask | KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask | EnterWindowMask | LeaveWindowMask | PointerMotionMask | KeymapStateMask - | ExposureMask | FocusChangeMask - | (parentWindow != 0 ? SubstructureNotifyMask : StructureNotifyMask); + | ExposureMask | StructureNotifyMask | FocusChangeMask; } template