This simplifies the system implementation because it can add windows as
soon as their created but before they're mapped. The WM can also keep
track of windows the entire time they exist.
{
row_t *row = new0(row_t);
row->win = win;
- row->state = win->state ?: ST_SHOW;
+ row->state = win->state;
if (col == NULL) {
col = new0(col_t);
printf("wm_insert: %p\n", win);
print_txt();
+ /* Make sure it's visible */
+ if (win->state == ST_HIDE)
+ return;
+
/* Check for toolbars */
if (win->type == TYPE_TOOLBAR)
return wm_update();