diff options
Diffstat (limited to 'swaynag')
-rw-r--r-- | swaynag/main.c | 2 | ||||
-rw-r--r-- | swaynag/swaynag.1.scd | 2 | ||||
-rw-r--r-- | swaynag/swaynag.c | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/swaynag/main.c b/swaynag/main.c index d1a0d236..bae3c0e2 100644 --- a/swaynag/main.c +++ b/swaynag/main.c | |||
@@ -36,7 +36,7 @@ int main(int argc, char **argv) { | |||
36 | 36 | ||
37 | swaynag.details.button_details = | 37 | swaynag.details.button_details = |
38 | calloc(sizeof(struct swaynag_button), 1); | 38 | calloc(sizeof(struct swaynag_button), 1); |
39 | swaynag.details.button_details->text = strdup("Toggle Details"); | 39 | swaynag.details.button_details->text = strdup("Toggle details"); |
40 | swaynag.details.button_details->type = SWAYNAG_ACTION_EXPAND; | 40 | swaynag.details.button_details->type = SWAYNAG_ACTION_EXPAND; |
41 | 41 | ||
42 | char *config_path = NULL; | 42 | char *config_path = NULL; |
diff --git a/swaynag/swaynag.1.scd b/swaynag/swaynag.1.scd index 1c395aee..bb69e47d 100644 --- a/swaynag/swaynag.1.scd +++ b/swaynag/swaynag.1.scd | |||
@@ -40,7 +40,7 @@ _swaynag_ [options...] | |||
40 | 40 | ||
41 | *-L, --detailed-button* <text> | 41 | *-L, --detailed-button* <text> |
42 | Set the text for the button that toggles details. This has no effect if | 42 | Set the text for the button that toggles details. This has no effect if |
43 | there is not a detailed message. The default is _Toggle Details_. | 43 | there is not a detailed message. The default is _Toggle details_. |
44 | 44 | ||
45 | *-m, --message* <msg> | 45 | *-m, --message* <msg> |
46 | Set the message text. | 46 | Set the message text. |
diff --git a/swaynag/swaynag.c b/swaynag/swaynag.c index 26d3589e..69da851e 100644 --- a/swaynag/swaynag.c +++ b/swaynag/swaynag.c | |||
@@ -390,6 +390,10 @@ void swaynag_run(struct swaynag *swaynag) { | |||
390 | && wl_display_dispatch(swaynag->display) != -1) { | 390 | && wl_display_dispatch(swaynag->display) != -1) { |
391 | // This is intentionally left blank | 391 | // This is intentionally left blank |
392 | } | 392 | } |
393 | |||
394 | if (swaynag->display) { | ||
395 | wl_display_disconnect(swaynag->display); | ||
396 | } | ||
393 | } | 397 | } |
394 | 398 | ||
395 | void swaynag_destroy(struct swaynag *swaynag) { | 399 | void swaynag_destroy(struct swaynag *swaynag) { |
@@ -449,8 +453,4 @@ void swaynag_destroy(struct swaynag *swaynag) { | |||
449 | if (swaynag->shm) { | 453 | if (swaynag->shm) { |
450 | wl_shm_destroy(swaynag->shm); | 454 | wl_shm_destroy(swaynag->shm); |
451 | } | 455 | } |
452 | |||
453 | if (swaynag->display) { | ||
454 | wl_display_disconnect(swaynag->display); | ||
455 | } | ||
456 | } | 456 | } |