Skip to content

Commit

Permalink
x11/wofi: update to 1.4
Browse files Browse the repository at this point in the history
Changes:	https://hg.sr.ht/~scoopta/wofi/log?rev=v1.4
Reported by:	Repology
  • Loading branch information
jbeich committed Feb 6, 2024
1 parent bcd5ce3 commit a0c82b3
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 5 deletions.
3 changes: 1 addition & 2 deletions x11/wofi/Makefile
@@ -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=/

Expand Down
6 changes: 3 additions & 3 deletions x11/wofi/distinfo
@@ -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
26 changes: 26 additions & 0 deletions x11/wofi/files/patch-src_wofi.c
@@ -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);
}

0 comments on commit a0c82b3

Please sign in to comment.