aboutsummaryrefslogtreecommitdiff
path: root/dragon.c
diff options
context:
space:
mode:
authorMichael Homer <mwh@mwh.geek.nz>2021-01-16 09:27:26 +1300
committerMichael Homer <mwh@ecs.vuw.ac.nz>2021-01-16 09:29:31 +1300
commit7144c6afe25d361eaa36efc4a3f7eec2423b8b6a (patch)
tree2a6fc81383530a5fc5beb531034c82cc6365508d /dragon.c
parentfix #20 (diff)
downloaddragon-7144c6afe25d361eaa36efc4a3f7eec2423b8b6a.tar.gz
dragon-7144c6afe25d361eaa36efc4a3f7eec2423b8b6a.tar.bz2
dragon-7144c6afe25d361eaa36efc4a3f7eec2423b8b6a.zip
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.
Diffstat (limited to 'dragon.c')
-rw-r--r--dragon.c10
1 files changed, 3 insertions, 7 deletions
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]);
bgstack15