diff options
author | René Neumann <rene.neumann@in.tum.de> | 2013-06-04 15:29:08 +0200 |
---|---|---|
committer | René Neumann <rene.neumann@in.tum.de> | 2013-06-04 15:29:08 +0200 |
commit | 61a4bfbcf01b542b7c482ef06fbb2b3a035148bc (patch) | |
tree | e13f7583611f78b90b493372ded7d34f03749395 /x11-misc/dunst/files/dunst-1.0.0-fix-pause-resume.patch | |
parent | 23bd442354de380e32e9db73e8924f36a5a908c8 (diff) | |
download | overlay-61a4bfbcf01b542b7c482ef06fbb2b3a035148bc.tar.gz overlay-61a4bfbcf01b542b7c482ef06fbb2b3a035148bc.tar.bz2 overlay-61a4bfbcf01b542b7c482ef06fbb2b3a035148bc.zip |
dunst: fix-pause-resume.patch
Diffstat (limited to 'x11-misc/dunst/files/dunst-1.0.0-fix-pause-resume.patch')
-rw-r--r-- | x11-misc/dunst/files/dunst-1.0.0-fix-pause-resume.patch | 60 |
1 files changed, 60 insertions, 0 deletions
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 + |