diff options
author | Kate Hart <codehearts@users.noreply.github.com> | 2020-07-24 00:41:12 -0700 |
---|---|---|
committer | Kate Hart <codehearts@users.noreply.github.com> | 2020-07-24 00:41:12 -0700 |
commit | e68884314c563cd156d22c6cd1161e3c14ed8783 (patch) | |
tree | 0af8baf82843d9980bf5943ff798a0dbda2e4243 /src/options.c | |
parent | 5c59089f12b7b07d46626ecdccf0cfcd4e875e26 (diff) |
Add windowid option to draw to an existing window
This lets `feh` draw the background pixmap of an existing window,
opening the door for use with tools like `xscreensaver` or `xsecurelock`
Diffstat (limited to 'src/options.c')
-rw-r--r-- | src/options.c | 4 |
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; } |