From 80fc26a5fc622c56162be44011724251fac6553d Mon Sep 17 00:00:00 2001 From: seanpringle Date: Wed, 5 Sep 2012 00:32:33 +1000 Subject: [PATCH] misc --- Makefile | 6 ++++-- config.h | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index bfa99ad..5261548 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,10 @@ -CFLAGS?=-Wall -O2 -g +CFLAGS?=-Wall -Os LDADD?=$(shell pkg-config --cflags --libs x11 xinerama) normal: $(CC) -o xoat xoat.c $(CFLAGS) $(LDADD) $(LDFLAGS) + $(CC) -o xoat-debug xoat.c $(CFLAGS) -g $(LDADD) $(LDFLAGS) + strip xoat proto: cat *.c | egrep '^(void|int|char|unsigned|Window|client)' | sed -r 's/\)/);/' > proto.h @@ -11,6 +13,6 @@ docs: pandoc -s -w man xoat.md -o xoat.1 clean: - rm -f xoat + rm -f xoat xoat-debug all: docs proto normal \ No newline at end of file diff --git a/config.h b/config.h index e4ded07..bebb579 100644 --- a/config.h +++ b/config.h @@ -75,11 +75,11 @@ binding keys[] = { { .mod = Mod4Mask, .key = XK_a, .act = ACTION_ABOVE_TOGGLE }, // Switch focus between monitors. - { .mod = Mod4Mask, .key = XK_Next, .act = ACTION_FOCUS_MONITOR, .num = 1 }, + { .mod = Mod4Mask, .key = XK_Next, .act = ACTION_FOCUS_MONITOR, .num = +1 }, { .mod = Mod4Mask, .key = XK_Prior, .act = ACTION_FOCUS_MONITOR, .num = -1 }, // Move windows between monitors. - { .mod = ShiftMask|Mod4Mask, .key = XK_Next, .act = ACTION_MOVE_MONITOR, .num = 1 }, + { .mod = ShiftMask|Mod4Mask, .key = XK_Next, .act = ACTION_MOVE_MONITOR, .num = +1 }, { .mod = ShiftMask|Mod4Mask, .key = XK_Prior, .act = ACTION_MOVE_MONITOR, .num = -1 }, // Launcher