From 96a87bfadd7bee36c9a4dd7b1d0a3c9ce49714df Mon Sep 17 00:00:00 2001 From: uint23 Date: Fri, 16 May 2025 20:27:16 +0100 Subject: fix return value for parse_col && remove debug symbol from make instructions --- Makefile | 2 +- src/sxwm.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 2b2e550..7c69201 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ CC ?= gcc -CFLAGS ?= -std=c99 -Wall -Wextra -O3 -Isrc -g +CFLAGS ?= -std=c99 -Wall -Wextra -O3 -Isrc LDFLAGS ?= -lX11 -lXinerama -lXcursor PREFIX ?= /usr/local diff --git a/src/sxwm.c b/src/sxwm.c index 6fce79d..d2ade15 100644 --- a/src/sxwm.c +++ b/src/sxwm.c @@ -1048,8 +1048,8 @@ long parse_col(const char *hex) return WhitePixel(dpy, DefaultScreen(dpy)); } - /* return col.pixel; */ - return col.pixel |= 0xff << 24; + /* return col.pixel |= 0xff << 24; */ + return col.pixel; } void quit(void) -- cgit v1.2.3