From cc4492d9ca51c4291fb5e4c59cfa80b7070f93c7 Mon Sep 17 00:00:00 2001 From: Bastien Dejean Date: Tue, 17 Sep 2013 11:40:18 +0200 Subject: [PATCH] Remove `--float-upcoming` from `control` The following: bspc control --float-upcoming can now be expressed as: bspc rule -a \* --floating --one-shot --- bspwm.c | 1 - bspwm.h | 1 - doc/bspwm.1 | 5 ----- doc/bspwm.1.txt | 3 --- messages.c | 2 -- window.c | 5 ----- 6 files changed, 17 deletions(-) diff --git a/bspwm.c b/bspwm.c index 1e3f0ce..7771e69 100644 --- a/bspwm.c +++ b/bspwm.c @@ -173,7 +173,6 @@ void init(void) last_motion_time = last_motion_x = last_motion_y = 0; randr_base = 0; visible = auto_raise = true; - float_upcoming = false; exit_status = 0; } diff --git a/bspwm.h b/bspwm.h index b75775a..51b664e 100644 --- a/bspwm.h +++ b/bspwm.h @@ -39,7 +39,6 @@ int exit_status; bool visible; bool auto_raise; -bool float_upcoming; bool running; bool randr; diff --git a/doc/bspwm.1 b/doc/bspwm.1 index 34ad722..e8fa7c7 100644 --- a/doc/bspwm.1 +++ b/doc/bspwm.1 @@ -747,11 +747,6 @@ Write the current internal state to the panel FIFO\&. .RS 4 Toggle the visibility of all the windows\&. .RE -.PP -\fB\-\-float\-upcoming\fR -.RS 4 -Toggle the floating state of the upcoming window\&. -.RE .RE .SS "Pointer" .sp diff --git a/doc/bspwm.1.txt b/doc/bspwm.1.txt index 677cbc6..31dab20 100644 --- a/doc/bspwm.1.txt +++ b/doc/bspwm.1.txt @@ -461,9 +461,6 @@ Options *--toggle-visibility*:: Toggle the visibility of all the windows. -*--float-upcoming*:: - Toggle the floating state of the upcoming window. - Pointer ~~~~~~~ diff --git a/messages.c b/messages.c index cf876e1..27a286d 100644 --- a/messages.c +++ b/messages.c @@ -599,8 +599,6 @@ bool cmd_control(char **args, int num) { put_status(); } else if (streq("--toggle-visibility", *args)) { toggle_visibility(); - } else if (streq("--float-upcoming", *args)) { - float_upcoming = !float_upcoming; } else { return false; } diff --git a/window.c b/window.c index f58cfb3..0fc4476 100644 --- a/window.c +++ b/window.c @@ -104,11 +104,6 @@ void manage_window(monitor_t *m, desktop_t *d, xcb_window_t win) return; } - if (float_upcoming) { - floating = true; - float_upcoming = false; - } - client_t *c = make_client(win); update_floating_rectangle(c); -- 2.44.0