]> git.lizzy.rs Git - bspwm.git/commitdiff
Only keep one option for `swap`
authorBastien Dejean <nihilhill@gmail.com>
Sun, 2 Jun 2013 12:18:30 +0000 (14:18 +0200)
committerBastien Dejean <nihilhill@gmail.com>
Sun, 2 Jun 2013 12:18:30 +0000 (14:18 +0200)
README.md
bspwm.1
messages.c

index cd7c676192744246f5555c763a37e67ac1307c30..8727d4c5df91afa9c3bdffe98355564699864c61 100644 (file)
--- a/README.md
+++ b/README.md
@@ -107,7 +107,7 @@ The following messages are handled:
 
 - `shift left|right|up|down` — Exchange the current window with the given neighbor.
 
-- `swap [--swap-focus|--keep-focus]` — Swap the focused window with the last focused window.
+- `swap [--keep-focus]` — Swap the focused window with the last focused window.
 
 - `push left|right|up|down` — Push the fence located in the given direction.
 
diff --git a/bspwm.1 b/bspwm.1
index b738150c145dd71c778dc14e3368363a70633596..07f0bdf5bdbf8ee3898bf8300cbe9b9ad109f7f1 100644 (file)
--- a/bspwm.1
+++ b/bspwm.1
@@ -138,7 +138,7 @@ Focus the neighbor window situated in the given direction.
 .BI shift " left|right|up|down"
 Exchange the current window with the given neighbor.
 .TP
-.BI swap " [--swap-focus|--keep-focus]"
+.BI swap " [--keep-focus]"
 Swap the focused window with the last focused window.
 .TP
 .BI push " left|right|up|down"
index 4e8fc789d2e2d19801800d812eb38cda41e80e84..6a8b026d95922e0f74b6f2cb54a6970d2d062dab 100644 (file)
@@ -785,7 +785,7 @@ bool parse_send_option(char *s, send_option_t *o)
 
 bool parse_swap_option(char *s, swap_option_t *o)
 {
-    if (s == NULL || strcmp(s, "--swap-focus") == 0) {
+    if (s == NULL) {
         *o = SWAP_OPTION_SWAP_FOCUS;
         return true;
     } else if (strcmp(s, "--keep-focus") == 0) {