[vlc-commits] contrib: Qt: Disable systray notification sounds
Hugo Beauzée-Luyssen
git at videolan.org
Fri Jul 21 17:35:18 CEST 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Jul 21 17:34:48 2017 +0200| [6b3f8d46f51973d1a8f7b6fea45a47fdc214dbe8] | committer: Hugo Beauzée-Luyssen
contrib: Qt: Disable systray notification sounds
Fix #18530
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6b3f8d46f51973d1a8f7b6fea45a47fdc214dbe8
---
contrib/src/qt/rules.mak | 1 +
contrib/src/qt/systray-no-sound.patch | 13 +++++++++++++
2 files changed, 14 insertions(+)
diff --git a/contrib/src/qt/rules.mak b/contrib/src/qt/rules.mak
index 9dae604409..3a3ff05c3b 100644
--- a/contrib/src/qt/rules.mak
+++ b/contrib/src/qt/rules.mak
@@ -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
diff --git a/contrib/src/qt/systray-no-sound.patch b/contrib/src/qt/systray-no-sound.patch
new file mode 100644
index 0000000000..0d80933161
--- /dev/null
+++ b/contrib/src/qt/systray-no-sound.patch
@@ -0,0 +1,13 @@
+--- 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;
More information about the vlc-commits
mailing list