Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with statuscolors #1

Closed
afify opened this issue Aug 19, 2019 · 2 comments
Closed

issue with statuscolors #1

afify opened this issue Aug 19, 2019 · 2 comments

Comments

@afify
Copy link

afify commented Aug 19, 2019

Added spaces at the right corner, for each raw characters '\x00' .

https://dwm.suckless.org/patches/statuscolors/

@torrinfail
Copy link
Owner

Hello I looked at the issue and it looks like its an issue with the patch when drawing the text, rather than with dwmblocks. This sucks because I want to use the patch without having this issue as well. I'll let you know if I find a way to fix the patch.

@afify
Copy link
Author

afify commented Oct 26, 2019

thanks i found another patch to fix it

+	/* correction for colours */
+	int correct = 0; 
+	char *xcape = malloc (sizeof (char) * 128);
+	memset(xcape,0,sizeof (char) * 128);
+	for ( ; *ts != '\0' ; ts++) {    
+		if (*ts <= LENGTH(colors)) {
+			sprintf(xcape,"%c",*ts);
+			correct += TEXTW(xcape) - lrpad;
+		}
+	}
+	free(xcape);
+	ts = stext;
+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants