howm
More...
#include <stddef.h>
Go to the source code of this file.
howm
- Author
- Harvey Hunt
- Date
- 2015
Create a new workspace and update global state.
- Parameters
-
m | The monitor that the workspace should be added on. |
Convert a workspace's index in a workspace list to an index.
- Parameters
-
m | The monitor to search for the workspace on. |
index | The index to search for. |
- Returns
- The workspace stored at the index of the workspaces list.
Kills the given workspace.
- Parameters
-
m | The monitor that the workspace to be killed is on. |
ws | The workspace to be killed. |
Return a workspace after offsetting.
Use this to safely traverse the workspace list - instead of doing:
ws->next->next
do:
offset_ws(ws, 2)
- Parameters
-
ws | The workspace to be offset from. |
offset | The offset to apply |
- Returns
- The workspace at ws+offset.
Remove a workspace and update the global state.
- Parameters
-
m | The monitor that the workspace is on. |
ws | The workspace to be removed. |
Find and return a workspace's index in the workspace list.
- Parameters
-
ws | The workspace to search for. |
- Returns
- The index of the workspace in the workspace list.