Change some variable names, remove line from TODO because I am not able
to fix it. Will change some default integers to sort of work around it in a bit.
This commit is contained in:
parent
ba7887172f
commit
85c42be2f0
1
TODO
1
TODO
|
@ -1,5 +1,4 @@
|
|||
speedwm 0.5 to-do list
|
||||
- Fix first systray icon being transparent/black (This is an issue with the patch itself)
|
||||
- Fix full screen when using rounded corners (Temporary solution: Disable roundedcorners in speedwmrc)
|
||||
- Escape special characters in status bar (such as &)
|
||||
- Add compatibility with the tcc compiler (Main issue is the transparency)
|
||||
|
|
2
rules.h
2
rules.h
|
@ -21,7 +21,7 @@ static const Rule rules[] = {
|
|||
{ PDF_CLASS, NULL, NULL, 0, 0, 0, 0, 0, -1, 0, 0, 0 },
|
||||
{ TERMINAL_CLASS, NULL, EDITOR, 0, 0, 0, 1, 1, -1, 0, 0, 0 },
|
||||
{ TERMINAL_CLASS, NULL, MUSIC, 0, 0, 0, 0, 1, -1, 0, 0, 0 },
|
||||
{ TERMINAL_CLASS, NULL, broken, 0, 0, 0, 0, 1, -1, 0, 0, 0 },
|
||||
{ TERMINAL_CLASS, NULL, notitle, 0, 0, 0, 0, 1, -1, 0, 0, 0 },
|
||||
{ TERMINAL_CLASS, NULL, MIXER, 0, 1, 0, 0, 1, -1, 0, 0, 0 },
|
||||
{ BROWSER_CLASS, NULL, NULL, 0, 0, 0, 0, 0, -1, 0, 0, 0 },
|
||||
{ "mpv", NULL, NULL, 0, 0, 0, 0, 0, -1, 0, 0, 0 },
|
||||
|
|
18
speedwm.c
18
speedwm.c
|
@ -579,9 +579,9 @@ static pid_t winpid(Window w);
|
|||
#if USESYSTRAY
|
||||
static Systray *systray = NULL;
|
||||
#endif
|
||||
static const char broken[] = "speedwm";
|
||||
static const char notitle[] = ""; /* Title when none can be grabbed. */
|
||||
#if USEMOUSE
|
||||
static const char *layoutmenu_cmd = "speedwm-utils layout";
|
||||
static const char *layoutcmd = "speedwm-utils layout";
|
||||
#endif
|
||||
static char stext[1024];
|
||||
static char rawstext[1024];
|
||||
|
@ -774,8 +774,8 @@ applyrules(Client *c)
|
|||
c->tags = 0;
|
||||
c->scratchkey = 0;
|
||||
XGetClassHint(dpy, c->win, &ch);
|
||||
class = ch.res_class ? ch.res_class : broken;
|
||||
instance = ch.res_name ? ch.res_name : broken;
|
||||
class = ch.res_class ? ch.res_class : notitle;
|
||||
instance = ch.res_name ? ch.res_name : notitle;
|
||||
|
||||
if (strstr(class, "Steam") || strstr(class, "steam_app_"))
|
||||
c->issteam = 1;
|
||||
|
@ -1621,7 +1621,7 @@ layoutmenu(const Arg *arg) {
|
|||
char c[3];
|
||||
int i;
|
||||
|
||||
if (!(p = popen(layoutmenu_cmd, "r")))
|
||||
if (!(p = popen(layoutcmd, "r")))
|
||||
return;
|
||||
pclose(p);
|
||||
|
||||
|
@ -2174,7 +2174,7 @@ focus(Client *c)
|
|||
drawbars();
|
||||
}
|
||||
|
||||
/* there are some broken focus acquiring clients needing extra handling */
|
||||
/* there are some notitle focus acquiring clients needing extra handling */
|
||||
void
|
||||
focusin(XEvent *e)
|
||||
{
|
||||
|
@ -5328,8 +5328,8 @@ updaterules(Client *c)
|
|||
|
||||
/* rule matching */
|
||||
XGetClassHint(dpy, c->win, &ch);
|
||||
class = ch.res_class ? ch.res_class : broken;
|
||||
instance = ch.res_name ? ch.res_name : broken;
|
||||
class = ch.res_class ? ch.res_class : notitle;
|
||||
instance = ch.res_name ? ch.res_name : notitle;
|
||||
char found_rule = 0;
|
||||
|
||||
for (i = 0; i < LENGTH(rules); i++) {
|
||||
|
@ -5377,7 +5377,7 @@ updatetitle(Client *c)
|
|||
gettextprop(c->win, XA_WM_NAME, c->name, sizeof c->name);
|
||||
|
||||
if (c->name[0] == '\0')
|
||||
strcpy(c->name, broken);
|
||||
strcpy(c->name, notitle);
|
||||
|
||||
#if USEIPC
|
||||
for (Monitor *m = mons; m; m = m->next) {
|
||||
|
|
Loading…
Reference in a new issue