x11/wofi: update to 1.4

Changes:	https://hg.sr.ht/~scoopta/wofi/log?rev=v1.4
Reported by:	Repology
This commit is contained in:
Jan Beich 2024-02-05 00:26:21 +01:00
parent bcd5ce392f
commit a0c82b3c93
3 changed files with 30 additions and 5 deletions

View file

@ -1,7 +1,6 @@
PORTNAME= wofi
DISTVERSIONPREFIX= v
DISTVERSION= 1.3
PORTREVISION= 3
DISTVERSION= 1.4
CATEGORIES= x11 wayland
MASTER_SITES= https://hg.sr.ht/~scoopta/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1665110113
SHA256 (wofi-v1.3.tar.gz) = 7644e4e995bc027b7f3f411ceda82b3e2a72a4a424f6193663c27bbf00f23067
SIZE (wofi-v1.3.tar.gz) = 77317
TIMESTAMP = 1707089181
SHA256 (wofi-v1.4.tar.gz) = 0c1190164ed80fbaae747d74a2a3c980e9f92d12f594c961596a7025822112d6
SIZE (wofi-v1.4.tar.gz) = 79100

View file

@ -0,0 +1,26 @@
https://todo.sr.ht/~scoopta/wofi/211
--- src/wofi.c.orig 2024-02-04 23:26:21 UTC
+++ src/wofi.c
@@ -1299,13 +1299,10 @@ static void do_copy(void) {
}
}
-static void on_exit_set_custom_key_return_code(int status, void* data) {
- _UNUSED(data);
- if (status == EXIT_SUCCESS) {
+static void atexit_set_custom_key_return_code(void) {
fflush(stdout);
fflush(stderr);
_exit(custom_key_return_code);
- }
}
static void do_custom_key(int custom_key_num) {
@@ -2064,5 +2061,5 @@ void wofi_init(struct map* _config) {
gtk_window_set_title(GTK_WINDOW(window), prompt);
gtk_widget_show_all(window);
- on_exit(on_exit_set_custom_key_return_code, NULL);
+ atexit(atexit_set_custom_key_return_code);
}