Skip to content
Snippets Groups Projects
Commit 5f131f95 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

swap-with-workspace: Move parsing workspace (and send notification) after condition

parent 8b1fc1b9
Branches
No related tags found
No related merge requests found
......@@ -113,10 +113,9 @@ def mf_goto_workspace(params):
@main_function(["swap-with-workspace", "s"], std_parser, "Swap current workspace with specified workspace.")
def mf_swap_with_workspace(params):
n_master, n_slave = params_workspace(params)
current = shared.workspace_on[shared.output]
print(current)
if current != (None, None) and current != GUI_WORKSPACE:
n_master, n_slave = params_workspace(params)
swap_workspace(n_master, n_slave, *current)
@main_function(["gui"], [], "Show grafic user interface (only if you start daemon with `-g` option).")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment