From f06444b1db8a23de37b57921ccb55c202544a370 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 20 Nov 2021 23:58:09 +0100 Subject: --window-id: support hexadecimal IDs Closes #639 --- src/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3