Alopex

Check-in [6dda45587d]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:fixed window marking
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | master
Files: files | file ages | folders
SHA3-256: 6dda45587dbca7e5cc0d79b2e8e8ebe2bacabd72f1cceaba5d6f1a05251733a5
User & Date: jesse@mccluresk9.com 2014-03-20 20:49:57
Context
2014-03-21
19:15
fixed killclient check-in: c90db36f03 user: jesse@mccluresk9.com tags: trunk, master
2014-03-20
20:49
fixed window marking check-in: 6dda45587d user: jesse@mccluresk9.com tags: trunk, master
20:37
converted shorthand letters to human readable "script" language check-in: 835dfddbe2 user: jesse@mccluresk9.com tags: trunk, master
Changes

Changes to src/actions.c.

130
131
132
133
134
135
136

137
138
139
140
141
142
143
...
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
	else if (strncasecmp(arg[0],"bst",3)==0) m->mode = BSTACK;
	else if (strncasecmp(arg[0],"mon",3)==0) m->mode = MONOCLE;
	else if (strncasecmp(arg[0],"def",3)==0) m->mode = conf.mode;
}

void mark_client(Client *t, const char **arg) {
	int n = atoi(arg[0]);

	if (n > 1 && n < 10) winmarks[n] = t;
	else if (n == 1) { winmarks[0] = winmarks[1]; winmarks[1] = t; }
}

void mod_bar(Client *t, const char **arg) {
	if (!arg[0]) return;
	Container *C;
................................................................................
		arg[i] = tok;
		tok = strtok_r(NULL," ", &sptr);
	}
	arg = realloc(arg, (i+1) * sizeof(char *));
	arg[i] = NULL;
	parg = (const char **) arg;
	/* get target */
	Client *t = winmarks[1], *wt = NULL;
	if ( (strncasecmp(arg[0],"win",3)==0) && arg[1] ) {
		if ( !(n=atoi(arg[1])) ) {
			n = 1;
			parg = (const char **) &arg[1];
		}
		else {
			parg = (const char **) &arg[2];







>







 







|







130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
...
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
	else if (strncasecmp(arg[0],"bst",3)==0) m->mode = BSTACK;
	else if (strncasecmp(arg[0],"mon",3)==0) m->mode = MONOCLE;
	else if (strncasecmp(arg[0],"def",3)==0) m->mode = conf.mode;
}

void mark_client(Client *t, const char **arg) {
	int n = atoi(arg[0]);
	if (!(t=winmarks[1])) return;
	if (n > 1 && n < 10) winmarks[n] = t;
	else if (n == 1) { winmarks[0] = winmarks[1]; winmarks[1] = t; }
}

void mod_bar(Client *t, const char **arg) {
	if (!arg[0]) return;
	Container *C;
................................................................................
		arg[i] = tok;
		tok = strtok_r(NULL," ", &sptr);
	}
	arg = realloc(arg, (i+1) * sizeof(char *));
	arg[i] = NULL;
	parg = (const char **) arg;
	/* get target */
	Client *wt = NULL;
	if ( (strncasecmp(arg[0],"win",3)==0) && arg[1] ) {
		if ( !(n=atoi(arg[1])) ) {
			n = 1;
			parg = (const char **) &arg[1];
		}
		else {
			parg = (const char **) &arg[2];