Commit 6b3f8d46 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

contrib: Qt: Disable systray notification sounds

Fix #18530
parent 9a826c9f
......@@ -24,6 +24,7 @@ qt: qt-$(QT_VERSION).tar.xz .sum-qt
mv qtbase-opensource-src-$(QT_VERSION) qt-$(QT_VERSION)
$(APPLY) $(SRC)/qt/0001-Windows-QPA-Reimplement-calculation-of-window-frames_56.patch
$(APPLY) $(SRC)/qt/0002-Windows-QPA-Use-new-EnableNonClientDpiScaling-for-Wi_56.patch
$(APPLY) $(SRC)/qt/systray-no-sound.patch
$(MOVE)
ifdef HAVE_MACOSX
......
--- qt/src/widgets/util/qsystemtrayicon_win.cpp.old
+++ qt/src/widgets/util/qsystemtrayicon_win.cpp
@@ -258,6 +258,10 @@ bool QSystemTrayIconSys::showMessage(con
}
if (QSysInfo::windowsVersion() >= QSysInfo::WV_VISTA)
tnd.dwInfoFlags |= NIIF_LARGE_ICON;
+
+ // Never play audio on notifications.
+ tnd.dwInfoFlags |= NIIF_NOSOUND;
+
tnd.cbSize = notifyIconSize;
tnd.hWnd = m_hwnd;
tnd.uTimeout = uSecs;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment