mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
workspace: Sanity check input to activate*()
The passed argument should be a workspace, and it should not have been removed. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2707>
This commit is contained in:
parent
9d9fcc0bb1
commit
e709853ad3
@ -577,6 +577,9 @@ meta_workspace_activate_with_focus (MetaWorkspace *workspace,
|
|||||||
gint num_workspaces, current_space, new_space;
|
gint num_workspaces, current_space, new_space;
|
||||||
MetaMotionDirection direction;
|
MetaMotionDirection direction;
|
||||||
|
|
||||||
|
g_return_if_fail (META_IS_WORKSPACE (workspace));
|
||||||
|
g_return_if_fail (meta_workspace_index (workspace) != -1);
|
||||||
|
|
||||||
meta_verbose ("Activating workspace %d",
|
meta_verbose ("Activating workspace %d",
|
||||||
meta_workspace_index (workspace));
|
meta_workspace_index (workspace));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user