mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 13:24:09 +00:00
window: Remove duplicated code
meta_window_change_workspace_without_transients() already does exactly that.
This commit is contained in:
parent
17438ced91
commit
0a9511b24b
@ -4615,12 +4615,7 @@ meta_window_change_workspace_by_index (MetaWindow *window,
|
|||||||
workspace = meta_screen_append_new_workspace (screen, FALSE, CurrentTime);
|
workspace = meta_screen_append_new_workspace (screen, FALSE, CurrentTime);
|
||||||
|
|
||||||
if (workspace)
|
if (workspace)
|
||||||
{
|
meta_window_change_workspace (window, workspace);
|
||||||
if (window->on_all_workspaces_requested)
|
|
||||||
meta_window_unstick (window);
|
|
||||||
|
|
||||||
meta_window_change_workspace (window, workspace);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user