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

"Unwanted space" due to show desktop button between taglist and layout icon #128

Closed
SisyphusIsntHappy opened this issue May 8, 2021 · 2 comments

Comments

@SisyphusIsntHappy
Copy link

I do not remember setting any patches for this feature. I only enabled systray, push, pertag, vanitygaps, and vanitygaps-pertag patches.

2021-05-08-223842_1366x768_scrot

So which part of the code is responsible for this feature? How do disable this?

@bakkeby
Copy link
Owner

bakkeby commented May 8, 2021

If I were to guess then I would say that you have reduced the number of tag icons in your config.h file

dwm-flexipatch/config.def.h

Lines 362 to 366 in fd958dc

static char *tagicons[][NUMTAGS] = {
[DEFAULT_TAGS] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" },
[ALTERNATIVE_TAGS] = { "A", "B", "C", "D", "E", "F", "G", "H", "I" },
[ALT_TAGS_DECORATION] = { "<1>", "<2>", "<3>", "<4>", "<5>", "<6>", "<7>", "<8>", "<9>" },
};

but you didn't reduce the NUMTAGS macro to 6.

#define NUMTAGS 9

ref.

dwm-flexipatch/config.def.h

Lines 336 to 338 in fd958dc

* In a traditional dwm the number of tags in use can be changed simply by changing the number
* of strings in the tags array. This build does things a bit different which has some added
* benefits. If you need to change the number of tags here then change the NUMTAGS macro in dwm.c.

A bare 6.2 dwm will calculate the length of the tags array for every action you perform, but in dwm-flexipatch you'll have to specifically control that due to the tag icons being more flexible.

@SisyphusIsntHappy
Copy link
Author

Ah, I see, you're on point.

Thank you for the insight.

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