Add the "created" parameter to workspace_get.

If created is not NULL, *created is set to whether or not the
workspace has been just created.
This commit is contained in:
Fernando Tarlá Cardoso Lemos
2011-03-13 20:56:04 -03:00
committed by Michael Stapelberg
parent b8a716c370
commit b4e3dfd76b
4 changed files with 14 additions and 6 deletions

View File

@ -458,7 +458,7 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child,
}
DLOG("Changing container/workspace and unmapping the client\n");
Workspace *t_ws = workspace_get(assign->workspace-1);
Workspace *t_ws = workspace_get(assign->workspace-1, NULL);
workspace_initialize(t_ws, c_ws->output, false);
new->container = t_ws->table[t_ws->current_col][t_ws->current_row];