summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-01-09 12:34:26 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-01-09 12:34:26 +0100
commit4956bba42e65739a28e14d25cd05ee4601f67ca1 (patch)
tree90613df283e3b486351d0d8ba47728f46d3edbc1 /src/options.c
parent0c7a0b5379d6cfbd48df3ee568b79c6b988eec27 (diff)
parente68884314c563cd156d22c6cd1161e3c14ed8783 (diff)
Merge branch 'add-windowid-option' of https://github.com/codehearts/feh into codehearts-add-windowid-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 04f02c5..65e5a10 100644
--- a/src/options.c
+++ b/src/options.c
@@ -433,6 +433,7 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
#endif
{"class" , 1, 0, 249},
{"no-conversion-cache", 0, 0, 250},
+ {"windowid", 1, 0, 251},
{0, 0, 0, 0}
};
int optch = 0, cmdx = 0;
@@ -833,6 +834,9 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
case 250:
opt.use_conversion_cache = 0;
break;
+ case 251:
+ opt.x11_windowid = atoi(optarg);
+ break;
default:
break;
}