You are not logged in.
Took some time to sift through the entire dwm code base and managed to find out how it all interacts. Successfully wrote a few patches. Let the cusomization begin!
Last edited by deurzen (2018-03-24 04:12:35)
Offline
If only the code itself were documented. This quite bothers me. Good code is supposed to be documented code. Yet the preachers of software that "sucks less" rather cut down on a few lines of code (though let's be real, comments are not compiled and hence, obviously, have no effect on the program's performance) than add even the slightest explanation.
You are entitled to not like their coding style. But the implication of hypocrisy is unjustified. See suckless's own coding style page and the link to Pike's style within it:
https://suckless.org/coding_style/
http://doc.cat-v.org/bell_labs/pikestyle
I find the code extremely readable and I learned immensely not just about dwm but about window managers and the X11 protocol simply by reading it. It will take you far less time to just read dwm's slim code than it would to read a book talking about it. So just read the code and you'll know what those functions do.
DWM has changed a fair bit since I was last digging in it, but at least historically there were not separate lists for master / stack clients. There is just a client list. The "master" window(s) were just those at the top of the list. A function to move a window into the master position simply pulled it from the list and inserted it at the beginning.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline