From 291be57cde3e2bddbcf3991e79d217bf99adb980 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Wed, 5 Aug 2015 02:37:56 +0200 Subject: [PATCH] reset color after systray existing message Currently all messages following the "another systray is running" message are also printed in red. Fix this by reseting the color at the end of the message. --- src/systray/systraybar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systray/systraybar.c b/src/systray/systraybar.c index b78e913..c5773a8 100644 --- a/src/systray/systraybar.c +++ b/src/systray/systraybar.c @@ -295,7 +295,7 @@ void start_net() _NET_WM_PID = XInternAtom(server.dsp, "_NET_WM_PID", True); int ret = XGetWindowProperty(server.dsp, win, _NET_WM_PID, 0, 1024, False, AnyPropertyType, &actual_type, &actual_format, &nitems, &bytes_after, &prop); - fprintf(stderr, RED "tint2 : another systray is running"); + fprintf(stderr, RED "tint2 : another systray is running" RESET); if (ret == Success && prop) { pid = prop[1] * 256; pid += prop[0];