Created
May 26, 2012 14:34
-
-
Save polachok/2794155 to your computer and use it in GitHub Desktop.
no titles diff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/echinus.c b/echinus.c | |
index d21bab7..2426307 100644 | |
--- a/echinus.c | |
+++ b/echinus.c | |
@@ -191,8 +191,9 @@ unsigned int numlockmask; | |
struct { | |
Bool dectiled; | |
Bool hidebastards; | |
- int focus; | |
- int snap; | |
+ Bool titles; | |
+ int focus; | |
+ int snap; | |
char command[255]; | |
} options; | |
@@ -1016,7 +1017,7 @@ manage(Window w, XWindowAttributes * wa) { | |
cm = curmonitor(); | |
c->isicon = False; | |
- c->title = c->isbastard ? (Window) NULL : 1; | |
+ c->title = (c->isbastard || !options.titles) ? (Window) NULL : 1; | |
c->tags = emallocz(ntags * sizeof(cm->seltags[0])); | |
c->isfocusable = c->isbastard ? False : True; | |
c->border = c->isbastard ? 0 : style.border; | |
@@ -1914,14 +1915,16 @@ setup(char *conf) { | |
grabkeys(); | |
- /* init appearance */ | |
- initstyle(); | |
strncpy(options.command, getresource("command", COMMAND), LENGTH(options.command)); | |
options.command[LENGTH(options.command) - 1] = '\0'; | |
options.dectiled = atoi(getresource("decoratetiled", STR(DECORATETILED))); | |
options.hidebastards = atoi(getresource("hidebastards", "0")); | |
options.focus = atoi(getresource("sloppy", "0")); | |
options.snap = atoi(getresource("snap", STR(SNAP))); | |
+ options.titles = atoi(getresource("showtitle", "1")); | |
+ | |
+ /* init appearance */ | |
+ initstyle(); | |
for (m = monitors; m; m = m->next) { | |
m->struts[RightStrut] = m->struts[LeftStrut] = |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment