diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-11-20 23:58:09 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-11-20 23:58:09 +0100 |
commit | f06444b1db8a23de37b57921ccb55c202544a370 (patch) | |
tree | ff4b7a2dc1ad5cad29d90b6e36869eed17d51ebf /src | |
parent | 2ca6d3b5e7e1b16a33860dfa1eb81690a1140866 (diff) |
--window-id: support hexadecimal IDs
Closes #639
Diffstat (limited to 'src')
-rw-r--r-- | src/options.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/options.c b/src/options.c index a77c163..4d1e527 100644 --- a/src/options.c +++ b/src/options.c @@ -838,7 +838,7 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun) opt.use_conversion_cache = 0; break; case OPTION_window_id: - opt.x11_windowid = atol(optarg); + opt.x11_windowid = strtol(optarg, NULL, 0); break; case OPTION_zoom_step: opt.zoom_rate = atof(optarg); |