summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
authorOlof-Joachim Frahm <olof@macrolet.net>2019-10-11 22:19:33 +0200
committerOlof-Joachim Frahm <olof@macrolet.net>2019-10-11 22:19:33 +0200
commitde734d41517986273f8c887f892e15b66f0936ec (patch)
treee6d90e691e08cf8bdbd19eba7f2dc2a2af9f83df /src/options.c
parent7d154c00258c70136b0bca8ae162fe08c645373e (diff)
Allow setting the X11 class hint as an option.
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index 4c34b66..d3c1d52 100644
--- a/src/options.c
+++ b/src/options.c
@@ -430,6 +430,7 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
#ifdef HAVE_INOTIFY
{"auto-reload" , 0, 0, 248},
#endif
+ {"class" , 1, 0, 249},
{0, 0, 0, 0}
};
int optch = 0, cmdx = 0;
@@ -823,6 +824,9 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
opt.auto_reload = 1;
break;
#endif
+ case 249:
+ opt.x11_class = estrdup(optarg);
+ break;
default:
break;
}