![]() |
![]() |
![]() |
Muffin Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
int meta_workspace_index (MetaWorkspace *workspace
); GList * meta_workspace_list_windows (MetaWorkspace *workspace
); void meta_workspace_get_work_area_all_monitors (MetaWorkspace *workspace
,MetaRectangle *area
); void meta_workspace_activate (MetaWorkspace *workspace
,guint32 timestamp
); void meta_workspace_activate_with_focus (MetaWorkspace *workspace
,MetaWindow *focus_this
,guint32 timestamp
); void meta_workspace_update_window_hints (MetaWorkspace *workspace
); void meta_workspace_set_builtin_struts (MetaWorkspace *workspace
,GSList *struts
); MetaWorkspace * meta_workspace_get_neighbor (MetaWorkspace *workspace
,MetaMotionDirection direction
); MetaWorkspaceClass;
A workspace is a set of windows which all live on the same screen. (You may also see the name "desktop" around the place, which is the EWMH's name for the same thing.) Only one workspace of a screen may be active at once; all windows on all other workspaces are unmapped.
GList * meta_workspace_list_windows (MetaWorkspace *workspace
);
Gets windows contained on the workspace, including workspace->windows and also sticky windows. Override-redirect windows are not included.
|
a MetaWorkspace |
Returns : |
the list of windows. [transfer container][element-type MetaWindow] |
void meta_workspace_get_work_area_all_monitors (MetaWorkspace *workspace
,MetaRectangle *area
);
void meta_workspace_activate (MetaWorkspace *workspace
,guint32 timestamp
);
void meta_workspace_activate_with_focus (MetaWorkspace *workspace
,MetaWindow *focus_this
,guint32 timestamp
);
Switches to workspace
and possibly activates the window focus_this
.
The window focus_this
is activated by calling meta_window_activate()
which will unminimize it and transient parents, raise it and give it
the focus.
If a window is currently being moved by the user, it will be
moved to workspace
.
The advantage of calling this function instead of meta_workspace_activate()
followed by meta_window_activate()
is that it happens as a unit, so
no other window gets focused first before focus_this
.
|
a MetaWorkspace |
|
the MetaWindow to be focused, or NULL
|
|
timestamp for focus_this
|
void meta_workspace_update_window_hints (MetaWorkspace *workspace
);
void meta_workspace_set_builtin_struts (MetaWorkspace *workspace
,GSList *struts
);
Sets a list of struts that will be used in addition to the struts of the windows in the workspace when computing the work area of the workspace.
|
a MetaWorkspace |
|
list of MetaStrut. [element-type Meta.Strut][transfer none] |
MetaWorkspace * meta_workspace_get_neighbor (MetaWorkspace *workspace
,MetaMotionDirection direction
);
Gets the neighbor of the MetaWorkspace in the given direction
|
a MetaWorkspace |
|
a MetaMotionDirection, direction in which to look for the neighbor |
Returns : |
the neighbor MetaWorkspace. [transfer none] |