From db064ddf183a01d81a9cc39e96bb0085f12c14d4 Mon Sep 17 00:00:00 2001 From: aszlig Date: Sun, 20 Dec 2020 17:31:32 +0100 Subject: pkgs/psi: Keep urgency hint indefinitely One thing that has annoyed me since quite a while but ultimately didn't fix yet, was that the urgency hint was only set for one millisecond. I don't know how this would look like in a desktop environment, but in my environment the corresponding workspace only flashes red and then turns back to blue (the default color) whenever I get a new message. Since I do not constantly switch to Psi to check whether there is something new, I sometimes responded very late to messages even though I didn't want to (eg. not actively working on something). Of course, I also don't want to be interrupted when I'm actually in zone, but luckily the way urgency hints are displayed in my environment is pretty unobtrusive and there is no flashing, blinking or even sounds. So the only difference is that I do not need to switch to Psi anymore, to check whether there are new messages. Signed-off-by: aszlig --- pkgs/aszlig/psi/default.nix | 1 + pkgs/aszlig/psi/keep-urgency-hint.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 pkgs/aszlig/psi/keep-urgency-hint.patch (limited to 'pkgs/aszlig') diff --git a/pkgs/aszlig/psi/default.nix b/pkgs/aszlig/psi/default.nix index 6b53daca..17a85fc4 100644 --- a/pkgs/aszlig/psi/default.nix +++ b/pkgs/aszlig/psi/default.nix @@ -52,6 +52,7 @@ in stdenv.mkDerivation rec { patches = [ ./disable-xep-0232.patch ./darkstyle.patch + ./keep-urgency-hint.patch (substituteAll { src = ./config.patch; inherit jid resource; diff --git a/pkgs/aszlig/psi/keep-urgency-hint.patch b/pkgs/aszlig/psi/keep-urgency-hint.patch new file mode 100644 index 00000000..f2b1757b --- /dev/null +++ b/pkgs/aszlig/psi/keep-urgency-hint.patch @@ -0,0 +1,13 @@ +diff --git a/src/tools/advwidget/advwidget.cpp b/src/tools/advwidget/advwidget.cpp +index c1f896e2..c4c6ca83 100644 +--- a/src/tools/advwidget/advwidget.cpp ++++ b/src/tools/advwidget/advwidget.cpp +@@ -216,7 +216,7 @@ void GAdvancedWidget::Private::doFlash(bool yes) + + #else + +- QApplication::alert(parentWidget_, yes ? 0 : 1); ++ QApplication::alert(parentWidget_, 0); + + #endif + } -- cgit 1.4.1