summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-11-20 23:58:09 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-11-20 23:58:09 +0100
commitf06444b1db8a23de37b57921ccb55c202544a370 (patch)
treeff4b7a2dc1ad5cad29d90b6e36869eed17d51ebf /src/options.c
parent2ca6d3b5e7e1b16a33860dfa1eb81690a1140866 (diff)
--window-id: support hexadecimal IDs
Closes #639
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c2
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);