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.
This commit is contained in:
Sebastian Reichel
2015-08-05 02:37:56 +02:00
committed by o9000
parent 86d5872408
commit 70210fafc7

View File

@@ -295,7 +295,7 @@ void start_net()
_NET_WM_PID = XInternAtom(server.dsp, "_NET_WM_PID", True); _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); 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) { if (ret == Success && prop) {
pid = prop[1] * 256; pid = prop[1] * 256;
pid += prop[0]; pid += prop[0];