From 3822f09185416c5bc2913f873850141859dde712 Mon Sep 17 00:00:00 2001 From: fwsmit Date: Sat, 9 Jan 2021 14:34:52 +0100 Subject: [PATCH] Minor fixes --- .gitignore | 2 -- Makefile | 1 + src/dunst.c | 1 - src/option_parser.c | 4 ++-- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 09f0ec8..f6fb626 100644 --- a/.gitignore +++ b/.gitignore @@ -16,5 +16,3 @@ vgcore.* /dunst.systemd.service /org.knopwob.dunst.service /test/test - -# /src/wayland/protocols/*.h diff --git a/Makefile b/Makefile index f170efc..36fe4de 100644 --- a/Makefile +++ b/Makefile @@ -35,6 +35,7 @@ endif ifneq (0,${WAYLAND}) DATA_DIR_WAYLAND_PROTOCOLS ?= $(shell $(PKG_CONFIG) wayland-protocols --variable=pkgdatadir) +DATA_DIR_WAYLAND_PROTOCOLS := ${DATA_DIR_WAYLAND_PROTOCOLS} ifeq (,${DATA_DIR_WAYLAND_PROTOCOLS}) $(warning "Failed to query $(PKG_CONFIG) for package 'wayland-protocols'!") endif diff --git a/src/dunst.c b/src/dunst.c index 7fffa21..dad4c7c 100644 --- a/src/dunst.c +++ b/src/dunst.c @@ -78,7 +78,6 @@ static gboolean run(void *data) draw(); output->win_show(win); } else { - LOG_I("Calling win_hide"); output->win_hide(win); } diff --git a/src/option_parser.c b/src/option_parser.c index 3e31859..f53c97c 100644 --- a/src/option_parser.c +++ b/src/option_parser.c @@ -194,8 +194,8 @@ bool string_parse_layer(const char *s, enum zwlr_layer_shell_v1_layer *ret) ASSERT_OR_RET(STR_FULL(s), false); ASSERT_OR_RET(ret, false); - STRING_PARSE_RET("bottom", ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM); - STRING_PARSE_RET("top", ZWLR_LAYER_SHELL_V1_LAYER_TOP); + STRING_PARSE_RET("bottom", ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM); + STRING_PARSE_RET("top", ZWLR_LAYER_SHELL_V1_LAYER_TOP); STRING_PARSE_RET("overlay", ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY); return false;