From 404321488d7dd8d28154d5ce530e0700bcb0f34d Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Thu, 15 Jul 2021 20:56:04 +0200 Subject: [PATCH] Added more comp errors --- src/dwm.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/dwm.c b/src/dwm.c index 768b523..9bcb846 100644 --- a/src/dwm.c +++ b/src/dwm.c @@ -315,8 +315,12 @@ static Window root, wmcheckwin; /* configuration, allows nested code to access above variables */ #include "config.h" +/* Gap modes */ const unsigned int modeslen = (const unsigned int)(sizeof(modeslen) / sizeof(const unsigned int)); +FILE* logfile = NULL; +logfile = fopen("/tmp/dwm.log", "w"); + #ifdef VERSION #include "IPCClient.c" #include "yajl_dumps.c" @@ -1860,10 +1864,7 @@ switchgaps(const Arg *arg) selmon->gapidx %= modeslen; selmon->gappx = gapmodes[selmon->gapidx]; - /* - fprintf(stderr, "####### GAPPX=%d GAPIDX=%d\n", selmon->gappx, selmon->gapidx); - printf("####### GAPPX=%d GAPIDX=%d\n", selmon->gappx, selmon->gapidx); - */ + fprintf(logfile, "####### GAPPX=%d GAPIDX=%d\n", selmon->gappx, selmon->gapidx); arrange(selmon); }