Implement fullscreen (_NET_WM_STATE_FULLSCREEN)

This commit is contained in:
Michael Stapelberg
2009-02-14 08:38:07 +01:00
parent 031cf4ccda
commit df7621d5a5
8 changed files with 140 additions and 6 deletions

View File

@ -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]));
}
/*