diff --git a/source/modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp b/source/modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp index 5a6a2e36c..5e8603833 100644 --- a/source/modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp +++ b/source/modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp @@ -3055,7 +3055,7 @@ void XWindowSystem::handleButtonPressEvent (LinuxComponentPeer<::Window>* peer, peer->toFront (true); peer->handleMouseEvent (MouseInputSource::InputSourceType::mouse, getLogicalMousePos (buttonPressEvent, peer->getPlatformScaleFactor()), ModifierKeys::currentModifiers, MouseInputSource::invalidPressure, - MouseInputSource::invalidOrientation, getEventTime (buttonPressEvent), {}); + MouseInputSource::invalidOrientation, getEventTime (buttonPressEvent)); } void XWindowSystem::handleButtonPressEvent (LinuxComponentPeer<::Window>* peer, const XButtonPressedEvent& buttonPressEvent) const diff --git a/source/modules/juce_gui_basics/windows/juce_ComponentPeer.h b/source/modules/juce_gui_basics/windows/juce_ComponentPeer.h index 3dacc095a..820987e94 100644 --- a/source/modules/juce_gui_basics/windows/juce_ComponentPeer.h +++ b/source/modules/juce_gui_basics/windows/juce_ComponentPeer.h @@ -314,7 +314,7 @@ public: //============================================================================== void handleMouseEvent (MouseInputSource::InputSourceType type, Point positionWithinPeer, ModifierKeys newMods, float pressure, - float orientation, int64 time, PenDetails pen = {}, int touchIndex = 0); + float orientation, int64 time, PenDetails pen = PenDetails(), int touchIndex = 0); void handleMouseWheel (MouseInputSource::InputSourceType type, Point positionWithinPeer, int64 time, const MouseWheelDetails&, int touchIndex = 0);