From 7144c6afe25d361eaa36efc4a3f7eec2423b8b6a Mon Sep 17 00:00:00 2001 From: Michael Homer Date: Sat, 16 Jan 2021 09:27:26 +1300 Subject: Use --on-top, -T for always-on-top switch With `dragon -T ...`, the window will be marked always-on-top to allow dragging in/out of windows that would occlude it. The default with no option is a standard ("sometimes-on-top") window. In combination with 7a1ad24, this fixes #20. --- dragon.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'dragon.c') diff --git a/dragon.c b/dragon.c index 2d146c0..75a294a 100644 --- a/dragon.c +++ b/dragon.c @@ -362,8 +362,7 @@ int main (int argc, char **argv) { printf(" --print-path, -p with --target, print file paths" " instead of URIs\n"); printf(" --all, -a drag all files at once\n"); - printf(" --always, -A Always on top\n"); - printf(" --not-always, -N Not always on top\n"); + printf(" --on-top, -T make window always-on-top\n"); printf(" --verbose, -v be verbose\n"); printf(" --help show help\n"); printf(" --version show version details\n"); @@ -396,12 +395,9 @@ int main (int argc, char **argv) { } else if (strcmp(argv[i], "-i") == 0 || strcmp(argv[i], "--icon-only") == 0) { icons_only = true; - } else if (strcmp(argv[i], "-A") == 0 - || strcmp(argv[i], "--always") == 0) { + } else if (strcmp(argv[i], "-T") == 0 + || strcmp(argv[i], "--on-top") == 0) { always_on_top = true; - } else if (strcmp(argv[i], "-N") == 0 - || strcmp(argv[i], "--not-always") == 0) { - always_on_top = false; } else if (argv[i][0] == '-') { fprintf(stderr, "%s: error: unknown option `%s'.\n", progname, argv[i]); -- cgit