mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
workspace: Add meta_workspace_get_default_focus_window()
This will be used in the next commit to make this window appear focused. https://gitlab.gnome.org/GNOME/mutter/merge_requests/850
This commit is contained in:
parent
5fd90e85ed
commit
697b84e80e
@ -92,6 +92,7 @@ GList* meta_workspace_get_onscreen_region (MetaWorkspace *workspace);
|
||||
GList * meta_workspace_get_onmonitor_region (MetaWorkspace *workspace,
|
||||
MetaLogicalMonitor *logical_monitor);
|
||||
|
||||
MetaWindow* meta_workspace_get_default_focus_window (MetaWorkspace *workspace);
|
||||
void meta_workspace_focus_default_window (MetaWorkspace *workspace,
|
||||
MetaWindow *not_this_one,
|
||||
guint32 timestamp);
|
||||
|
@ -1281,6 +1281,15 @@ meta_workspace_get_name (MetaWorkspace *workspace)
|
||||
return meta_prefs_get_workspace_name (meta_workspace_index (workspace));
|
||||
}
|
||||
|
||||
MetaWindow *
|
||||
meta_workspace_get_default_focus_window (MetaWorkspace *workspace)
|
||||
{
|
||||
if (meta_prefs_get_focus_mode () == G_DESKTOP_FOCUS_MODE_CLICK)
|
||||
return meta_stack_get_default_focus_window (workspace->display->stack, workspace, NULL);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void
|
||||
meta_workspace_focus_default_window (MetaWorkspace *workspace,
|
||||
MetaWindow *not_this_one,
|
||||
|
Loading…
Reference in New Issue
Block a user