opnsense-ports/net-im/telegram-desktop/files/patch-Telegram_SourceFiles_ui_twidget.cpp
Franco Fichtner 2eb8c83735 */*: sync with upstream
Taken from: HardenedBSD
2019-02-05 07:03:49 +01:00

14 lines
536 B
C++

--- Telegram/SourceFiles/ui/twidget.cpp.orig 2019-02-01 12:51:46 UTC
+++ Telegram/SourceFiles/ui/twidget.cpp
@@ -249,9 +249,9 @@ void sendSynteticMouseEvent(QWidget *widget, QEvent::T
, button
, QGuiApplication::mouseButtons() | button
, QGuiApplication::keyboardModifiers()
-#ifndef OS_MAC_OLD
+#if !defined(OS_MAC_OLD) && QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
, Qt::MouseEventSynthesizedByApplication
-#endif // OS_MAC_OLD
+#endif
);
ev.setTimestamp(getms());
QGuiApplication::sendEvent(windowHandle, &ev);