fix: non-i3bar formats always used color_bad
from upstream git
This commit is contained in:
parent
9128f0e4d3
commit
98feff17c7
@ -1,11 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.6 2012/09/27 11:06:31 dcoppa Exp $
|
||||
# $OpenBSD: Makefile,v 1.7 2012/10/02 20:33:29 jasper Exp $
|
||||
|
||||
ONLY_FOR_ARCHS= ${APM_ARCHS}
|
||||
|
||||
COMMENT= generate a statusbar for use with i3/xmobar/dzen2
|
||||
|
||||
DISTNAME= i3status-2.5.1
|
||||
REVISION= 1
|
||||
REVISION= 2
|
||||
CATEGORIES= x11 sysutils
|
||||
|
||||
HOMEPAGE= http://i3wm.org/i3status/
|
||||
|
18
x11/i3status/patches/patch-include_i3status_h
Normal file
18
x11/i3status/patches/patch-include_i3status_h
Normal file
@ -0,0 +1,18 @@
|
||||
$OpenBSD: patch-include_i3status_h,v 1.3 2012/10/02 20:33:29 jasper Exp $
|
||||
|
||||
From cfaeba4df17397ac8d99155bc166bba90db0dbbf Mon Sep 17 00:00:00 2001
|
||||
From: Michael Stapelberg <michael@stapelberg.de>
|
||||
Date: Sun, 12 Aug 2012 23:35:07 +0000
|
||||
Subject: Bugfix: non-i3bar formats always used color_bad (Thanks hongy19)
|
||||
|
||||
--- include/i3status.h.orig Tue Oct 2 22:22:30 2012
|
||||
+++ include/i3status.h Tue Oct 2 22:22:42 2012
|
||||
@@ -99,7 +99,7 @@ enum { O_DZEN2, O_XMOBAR, O_I3BAR, O_NONE } output_for
|
||||
yajl_gen_string(json_gen, (const unsigned char *)"color", strlen("color")); \
|
||||
yajl_gen_string(json_gen, (const unsigned char *)val, strlen(val)); \
|
||||
} else { \
|
||||
- outwalk += sprintf(outwalk, "%s", color("color_bad")); \
|
||||
+ outwalk += sprintf(outwalk, "%s", color("colorstr")); \
|
||||
} \
|
||||
} \
|
||||
} while (0)
|
Loading…
Reference in New Issue
Block a user