Fex

Check-in [00c2e4c912]

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

Overview
Comment:fix crash on bad help command in config
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | master
Files: files | file ages | folders
SHA3-256: 00c2e4c912d7541cf517cd067da059ea225674feeebd819398a85c93bf8c8099
User & Date: jesse@mccluresk9.com 2015-01-07 20:16:22
Context
2015-01-11
14:34
allow multiple frequency exports per session check-in: 1c506d359b user: jesse@mccluresk9.com tags: trunk, master
2015-01-07
20:16
fix crash on bad help command in config check-in: 00c2e4c912 user: jesse@mccluresk9.com tags: trunk, master
20:10
frequency trace exporing to work with WarpZone check-in: 2cc45f4303 user: jesse@mccluresk9.com tags: trunk, master
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/xlib_events.c.

143
144
145
146
147
148
149
150



151

152
153
154
155
156
157
158
		else if (sym == XK_p) play(0.5);
	}
	else if (sym == XK_j || sym == XK_Down) move(0,0.02);
	else if (sym == XK_k || sym == XK_Up) move(0,-0.02);
	else if (sym == XK_h || sym == XK_Left) move(0.02,0);
	else if (sym == XK_l || sym == XK_Right) move(-0.02,0);
	else if (sym == XK_F1) {
		if (fork() == 0)



			execvp(conf.help_cmd[0],(char * const *)conf.help_cmd);

	}
	else if (sym == XK_F2) {
		if ( (info->vis = !info->vis) ) XMapRaised(dpy,info->win);
		else XUnmapWindow(dpy,info->win);
		XFlush(dpy);
	}
	else if (sym == XK_e) {







|
>
>
>

>







143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
		else if (sym == XK_p) play(0.5);
	}
	else if (sym == XK_j || sym == XK_Down) move(0,0.02);
	else if (sym == XK_k || sym == XK_Up) move(0,-0.02);
	else if (sym == XK_h || sym == XK_Left) move(0.02,0);
	else if (sym == XK_l || sym == XK_Right) move(-0.02,0);
	else if (sym == XK_F1) {
		if (fork() == 0) {
			close(ConnectionNumber(dpy));
			fclose(stderr);
			fclose(stdout);
			execvp(conf.help_cmd[0],(char * const *)conf.help_cmd);
		}
	}
	else if (sym == XK_F2) {
		if ( (info->vis = !info->vis) ) XMapRaised(dpy,info->win);
		else XUnmapWindow(dpy,info->win);
		XFlush(dpy);
	}
	else if (sym == XK_e) {