summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--x11-misc/dunst/Manifest3
-rw-r--r--x11-misc/dunst/dunst-1.0.0.ebuild1
-rw-r--r--x11-misc/dunst/files/dunst-1.0.0-fix-pause-resume.patch60
3 files changed, 63 insertions, 1 deletions
diff --git a/x11-misc/dunst/Manifest b/x11-misc/dunst/Manifest
index 551f95e..d098251 100644
--- a/x11-misc/dunst/Manifest
+++ b/x11-misc/dunst/Manifest
@@ -1,3 +1,4 @@
+AUX dunst-1.0.0-fix-pause-resume.patch 1750 SHA256 8f3d4fd5fcef89b0564a6bbf796c474884c43d830eaaf7d085afb3f831cbb92f SHA512 4cab00a4a7342fb43ebf9f3167d1a9bfdbcf9b67160a7024391b7ce4e8269c8e81ea89c81505b01dd7b55b4bb39dfe8ad95c08556b5f45ad9c2c3bed39911350 WHIRLPOOL 8cb0537d6c0451cad697d6fa450f0dcc3e0d9fedc73d2f80c43f75bc0391397669e10504c20ac76e6f18475407b9153fcd93b4c321af41883405e8b17d2bd04b
AUX dunst-1.0.0-numlock.patch 5898 SHA256 f48b56b74a7bae8191d0aebc2235677d23a4b26c3cb35266a0e73af4ca1e8b3e SHA512 1ddb9779f09acce1267158fef6e451cc2532c9f4bda7b4fd16ebe08603ea6c3ee05f5aabdace85667dd50ff997c0906ce7c9a17728a0b1f967a5d9ccc0faffd5 WHIRLPOOL 4bffa04c74d0cc392bbb36d6b80f74076a1bd8681d0f801a0f7380eea4937c796f6fcaa77f0488483252c8676f38af44cba77696dfce708d4d4e912d619a1652
DIST dunst-1.0.0.tar.bz2 75306 SHA256 5c79ef11165421a4828453a42dfe9c60a4cb9d8743f970186a90c67e277f5280 SHA512 81490597ef8354d2c32838c72e03b121cf09d61e0fbef697a8adfb0c4783e45b3bb05790bf94cc1d0ed41e7f4b5f13a8edfdc65fec5569dc29966edd0807bfe1 WHIRLPOOL 724295fec6d284cc512944435a93df8c55b214d59d2b2b33c3fbf83e6a51db40b6ca15ce68446988dbeab695b0a907a4301124f35fb6748bed8c8143042b0bd9
-EBUILD dunst-1.0.0.ebuild 1097 SHA256 cb4a18d62a5f989da62d1a0e8d2d1ec477abee650fc37f191ea92d666ea980af SHA512 419c38b3ed6908c719f9556f48943effea7214644730319a62c48c7c555c331d532ecde90b5a88748625f2695ac1c2951948a5c4406a278dafe9d0eb1f30407b WHIRLPOOL 81a05b2463a84fd15a4ae1053bed80cdf71c859314a19aa090d5f39b0c5ae9692be7a94981040f97ba727541db44921a5faa31983651c76b8b85e3ed90e4bdaf
+EBUILD dunst-1.0.0.ebuild 1154 SHA256 098dd1dfae1855857623c1583ec9e3812ba009c2db871b66f88072ac2c1bc0a2 SHA512 1759c67c6850db4c052eca0ed9b197be1782aedb704931f0c5c6d15a3b21f083774c897c6663455ab2c8d1be941b4233cf08dc439ac6643c536c7bdc7ae94d5a WHIRLPOOL ff9f38881b784cf5230aaab241977aee1122a3e831399cf1526582d053244d1d0e4141140e3b230440eacd11e2db672e553eca5e1a6fcfbb67c2ee2dc4781c8e
diff --git a/x11-misc/dunst/dunst-1.0.0.ebuild b/x11-misc/dunst/dunst-1.0.0.ebuild
index 3e7ac00..721b31b 100644
--- a/x11-misc/dunst/dunst-1.0.0.ebuild
+++ b/x11-misc/dunst/dunst-1.0.0.ebuild
@@ -41,6 +41,7 @@ src_prepare() {
sed -ie "/^all:/ s:dunstify::" Makefile || die "sed failed"
epatch "${FILESDIR}"/dunst-1.0.0-numlock.patch
+ epatch "${FILESDIR}"/dunst-1.0.0-fix-pause-resume.patch
}
src_install() {
diff --git a/x11-misc/dunst/files/dunst-1.0.0-fix-pause-resume.patch b/x11-misc/dunst/files/dunst-1.0.0-fix-pause-resume.patch
new file mode 100644
index 0000000..9955177
--- /dev/null
+++ b/x11-misc/dunst/files/dunst-1.0.0-fix-pause-resume.patch
@@ -0,0 +1,60 @@
+From 04248fd49ef6769c7dc7e246fc505ad9c70afe27 Mon Sep 17 00:00:00 2001
+From: Sascha Kruse <knopwob@googlemail.com>
+Date: Mon, 22 Apr 2013 20:07:35 +0000
+Subject: [PATCH] fix pause/resume
+
+this fixes github issue #98
+---
+ dunst.c | 14 ++++++++------
+ 1 file changed, 8 insertions(+), 6 deletions(-)
+
+diff --git a/dunst.c b/dunst.c
+index fe67f4b..534a6d2 100644
+--- a/dunst.c
++++ b/dunst.c
+@@ -105,7 +105,7 @@ void update_lists()
+
+ if (pause_display) {
+ while (displayed->length > 0) {
+- g_queue_insert_sorted(queue, g_queue_pop_head(queue),
++ g_queue_insert_sorted(queue, g_queue_pop_head(displayed),
+ notification_cmp_data, NULL);
+ }
+ return;
+@@ -240,16 +240,16 @@ gboolean run(void *data)
+ timeout_cnt--;
+ }
+
+- if (displayed->length > 0 && !xctx.visible) {
+- x_win_show();
++ if (displayed->length > 0 && !xctx.visible && !pause_display) {
++ x_win_show();
+ }
+
+- if (displayed->length == 0 && xctx.visible) {
+- x_win_hide();
++ if (xctx.visible && (pause_display || displayed->length == 0)) {
++ x_win_hide();
+ }
+
+ if (xctx.visible) {
+- x_win_draw();
++ x_win_draw();
+ }
+
+ if (xctx.visible) {
+@@ -355,9 +355,11 @@ void pause_signal_handler(int sig)
+ {
+ if (sig == SIGUSR1) {
+ pause_display = true;
++ wake_up();
+ }
+ if (sig == SIGUSR2) {
+ pause_display = false;
++ wake_up();
+ }
+
+ signal(sig, pause_signal_handler);
+--
+1.8.1.5
+