wayland: Add API to change a tool focus surface

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3420>
This commit is contained in:
Carlos Garnacho
2023-11-15 14:49:29 +01:00
parent 9c2514b75c
commit 77ec0d1e41
4 changed files with 35 additions and 0 deletions

View File

@ -950,3 +950,10 @@ meta_wayland_tablet_tool_get_current_surface (MetaWaylandTabletTool *tool)
{
return tool->current;
}
void
meta_wayland_tablet_tool_focus_surface (MetaWaylandTabletTool *tool,
MetaWaylandSurface *surface)
{
meta_wayland_tablet_tool_set_focus (tool, surface, NULL);
}