1 --- yeahconsole.c.orig 2006-03-11 19:26:00.000000000 +0100
2 +++ yeahconsole.c 2009-09-19 11:43:07.000000000 +0200
6 int opt_x, opt_width, opt_height, opt_delay, opt_bw, opt_step,
8 + height, opt_restart, opt_restart_hidden;
19 Window last_focused, current_focused;
21 /* strip the path from argv[0] if there is one */
24 if (event.xunmap.window == termwin) {
26 + if (opt_restart_hidden) {
32 - XSetInputFocus(dpy, termwin, RevertToPointerRoot,
34 + if (opt_restart_hidden && last_focused)
35 + XSetInputFocus(dpy, last_focused,
36 + RevertToPointerRoot, CurrentTime);
38 + XSetInputFocus(dpy, termwin, RevertToPointerRoot,
42 XSetInputFocus(dpy, last_focused,
44 opt_step = opt ? atoi(opt) : 1;
45 opt = XGetDefault(dpy, progname, "restart");
46 opt_restart = opt ? atoi(opt) : 0;
47 + opt = XGetDefault(dpy, progname, "restartHidden");
48 + opt_restart_hidden = opt ? atoi(opt) : 0;
49 opt = XGetDefault(dpy, progname, "term");
50 opt_term = opt ? opt : "xterm";
51 opt = XGetDefault(dpy, progname, "toggleKey");