|
|
@ -351,7 +351,6 @@ fn tile_current_workspace(include_floating: bool, shuffle: bool) { |
|
|
|
} |
|
|
|
} |
|
|
|
for win in wins { |
|
|
|
for win in wins { |
|
|
|
if win.is_floating() { |
|
|
|
if win.is_floating() { |
|
|
|
std::thread::sleep(std::time::Duration::from_millis(25)); |
|
|
|
|
|
|
|
con.run_command(format!( |
|
|
|
con.run_command(format!( |
|
|
|
"[con_id={}] floating disable", |
|
|
|
"[con_id={}] floating disable", |
|
|
|
win.get_id() |
|
|
|
win.get_id() |
|
|
@ -391,16 +390,18 @@ fn tab_current_workspace(include_floating: bool) { |
|
|
|
let mut placed_wins = vec![]; |
|
|
|
let mut placed_wins = vec![]; |
|
|
|
wins.reverse(); |
|
|
|
wins.reverse(); |
|
|
|
for win in wins { |
|
|
|
for win in wins { |
|
|
|
|
|
|
|
if win.is_floating() { |
|
|
|
|
|
|
|
con.run_command(format!( |
|
|
|
|
|
|
|
"[con_id={}] floating disable", |
|
|
|
|
|
|
|
win.get_id() |
|
|
|
|
|
|
|
))?; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
std::thread::sleep(std::time::Duration::from_millis(25)); |
|
|
|
std::thread::sleep(std::time::Duration::from_millis(25)); |
|
|
|
con.run_command(format!( |
|
|
|
con.run_command(format!( |
|
|
|
"[con_id={}] move to workspace current", |
|
|
|
"[con_id={}] move to workspace current", |
|
|
|
win.get_id() |
|
|
|
win.get_id() |
|
|
|
))?; |
|
|
|
))?; |
|
|
|
std::thread::sleep(std::time::Duration::from_millis(25)); |
|
|
|
|
|
|
|
con.run_command(format!( |
|
|
|
|
|
|
|
"[con_id={}] floating disable", |
|
|
|
|
|
|
|
win.get_id() |
|
|
|
|
|
|
|
))?; |
|
|
|
|
|
|
|
placed_wins.push(win); |
|
|
|
placed_wins.push(win); |
|
|
|
} |
|
|
|
} |
|
|
|
Ok(()) |
|
|
|
Ok(()) |
|
|
|