From b5e94bec369329891364f38a8468e9d0ed4b6b1e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 9 Jan 2021 12:42:43 +0100 Subject: X11 uses unsigned long int for window IDs (see X11/X.h) --- src/options.c | 2 +- src/options.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/options.c b/src/options.c index 65e5a10..aa9d4c8 100644 --- a/src/options.c +++ b/src/options.c @@ -835,7 +835,7 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun) opt.use_conversion_cache = 0; break; case 251: - opt.x11_windowid = atoi(optarg); + opt.x11_windowid = atol(optarg); break; default: break; diff --git a/src/options.h b/src/options.h index 5270f38..7ca699b 100644 --- a/src/options.h +++ b/src/options.h @@ -130,7 +130,7 @@ struct __fehoptions { unsigned char adjust_reload; int xinerama_index; char *x11_class; - unsigned int *x11_windowid; + unsigned long int x11_windowid; /* signed in case someone wants to invert scrolling real quick */ int scroll_step; -- cgit v1.2.3