diff options
author | Bert <ber.t@gmx.com> | 2011-02-01 16:40:37 +0100 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-02-01 16:40:37 +0100 |
commit | f2ceac2f8ab04f91672a9cb168dfdf69dab02b3c (patch) | |
tree | 4a405c366a9775afe359ad04e0bfd2718264480f /options.c | |
parent | 8fb3110ebb1f4ac46729ceac906e21674368d93d (diff) |
New option: -F, fixed/floating window
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -29,7 +29,7 @@ options_t _options; const options_t *options = (const options_t*) &_options; void print_usage() { - printf("usage: sxiv [-dfhpqsvZ] [-g GEOMETRY] [-z ZOOM] FILES...\n"); + printf("usage: sxiv [-dFfhpqsvZ] [-g GEOMETRY] [-z ZOOM] FILES...\n"); } void print_version() { @@ -45,12 +45,13 @@ void parse_options(int argc, char **argv) { _options.zoom = 1.0; _options.aa = 1; + _options.fixed = 0; _options.fullscreen = 0; _options.geometry = NULL; _options.quiet = 0; - while ((opt = getopt(argc, argv, "dfg:hpqsvZz:")) != -1) { + while ((opt = getopt(argc, argv, "dFfg:hpqsvZz:")) != -1) { switch (opt) { case '?': print_usage(); @@ -58,6 +59,9 @@ void parse_options(int argc, char **argv) { case 'd': _options.scalemode = SCALE_DOWN; break; + case 'F': + _options.fixed = 1; + break; case 'f': _options.fullscreen = 1; break; |