Implement a command for hiding all floating windows (and showing them again)
This commit is contained in:
@ -625,12 +625,9 @@ void show_workspace(xcb_connection_t *conn, int workspace) {
|
||||
xcb_map_window(conn, client->frame);
|
||||
|
||||
/* Map all floating clients */
|
||||
SLIST_FOREACH(client, &(c_ws->focus_stack), focus_clients) {
|
||||
if (client->floating <= FLOATING_USER_OFF)
|
||||
continue;
|
||||
|
||||
xcb_map_window(conn, client->frame);
|
||||
}
|
||||
if (!c_ws->floating_hidden)
|
||||
TAILQ_FOREACH(client, &(c_ws->floating_clients), floating_clients)
|
||||
xcb_map_window(conn, client->frame);
|
||||
|
||||
/* Map all stack windows, if any */
|
||||
struct Stack_Window *stack_win;
|
||||
@ -854,6 +851,12 @@ void parse_command(xcb_connection_t *conn, const char *command) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (command[0] == 'H') {
|
||||
LOG("Hiding all floating windows\n");
|
||||
floating_toggle_hide(conn, c_ws);
|
||||
return;
|
||||
}
|
||||
|
||||
enum { WITH_WINDOW, WITH_CONTAINER, WITH_WORKSPACE } with = WITH_WINDOW;
|
||||
|
||||
/* Is it a <with>? */
|
||||
|
Reference in New Issue
Block a user