Implement fullscreen (_NET_WM_STATE_FULLSCREEN)
This commit is contained in:
@ -45,12 +45,13 @@ void init_table() {
|
||||
}
|
||||
}
|
||||
|
||||
static void new_container(Container **container) {
|
||||
static void new_container(Workspace *workspace, Container **container) {
|
||||
Container *new;
|
||||
new = *container = calloc(sizeof(Container), 1);
|
||||
CIRCLEQ_INIT(&(new->clients));
|
||||
new->colspan = 1;
|
||||
new->rowspan = 1;
|
||||
new->workspace = workspace;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -64,7 +65,7 @@ void expand_table_rows(Workspace *workspace) {
|
||||
|
||||
for (c = 0; c < workspace->cols; c++) {
|
||||
workspace->table[c] = realloc(workspace->table[c], sizeof(Container*) * workspace->rows);
|
||||
new_container(&(workspace->table[c][workspace->rows-1]));
|
||||
new_container(workspace, &(workspace->table[c][workspace->rows-1]));
|
||||
}
|
||||
}
|
||||
|
||||
@ -80,7 +81,7 @@ void expand_table_cols(Workspace *workspace) {
|
||||
workspace->table = realloc(workspace->table, sizeof(Container**) * workspace->cols);
|
||||
workspace->table[workspace->cols-1] = calloc(sizeof(Container*) * workspace->rows, 1);
|
||||
for (c = 0; c < workspace->rows; c++)
|
||||
new_container(&(workspace->table[workspace->cols-1][c]));
|
||||
new_container(workspace, &(workspace->table[workspace->cols-1][c]));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user