Phoc.WorkspaceManager.set_active_by_index

### Method

# Phoc WorkspaceManagerset_active_by_index

#### Declaration [src]

    void
    phoc_workspace_manager_set_active_by_index (
      PhocWorkspaceManager* self,
      guint index,
      gboolean focus
    )

#### Description [src]

Activate the workspace with the given index. If `focus` is `TRUE` the last focused view on that surface will be focused, otherwise focus remains unchanged.

#### Parameters

`index`

  Type: `guint`

  The index of the workspace to set active.

`focus`

  Type: `gboolean`

  Whether to focus the last active view on that workspace.