forked from pool/telegram-desktop
ff2408c278
- Refresh 0005-qt6-fixes.patch OBS-URL: https://build.opensuse.org/request/show/1041215 OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=239
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
--- Telegram/lib_ui/ui/widgets/popup_menu.cpp.orig 2022-11-12 11:12:02.000000000 +0000
|
|
+++ Telegram/lib_ui/ui/widgets/popup_menu.cpp 2022-12-05 07:53:47.978014760 +0000
|
|
@@ -637,14 +637,14 @@ bool PopupMenu::eventFilter(QObject *o,
|
|
event->device(),
|
|
event->touchPoints(),
|
|
event->timestamp()));
|
|
-#elif QT_VERSION < QT_VERSION_CHECK(6, 3, 0) // Qt < 6.0.0
|
|
+#elif QT_VERSION < QT_VERSION_CHECK(6, 2, 2) // Qt < 6.0.0
|
|
e->setAccepted(
|
|
QApplicationPrivate::translateRawTouchEvent(
|
|
this,
|
|
event->pointingDevice(),
|
|
const_cast<QList<QEventPoint> &>(event->points()),
|
|
event->timestamp()));
|
|
-#else // Qt < 6.3.0
|
|
+#else // Qt < 6.2.0
|
|
e->setAccepted(
|
|
QApplicationPrivate::translateRawTouchEvent(this, event));
|
|
#endif
|
|
--- Telegram/SourceFiles/platform/linux/specific_linux.cpp.orig 2022-12-06 19:40:56.000000000 +0000
|
|
+++ Telegram/SourceFiles/platform/linux/specific_linux.cpp 2022-12-07 19:51:45.000506006 +0000
|
|
@@ -297,7 +297,11 @@ void LaunchGApplication() {
|
|
});
|
|
|
|
QEventLoop loop;
|
|
+#if QT_VERSION < QT_VERSION_CHECK(6, 3, 0)
|
|
+ loop.exec();
|
|
+#else
|
|
loop.exec(QEventLoop::ApplicationExec);
|
|
+#endif
|
|
app->quit();
|
|
}, true);
|
|
|