Bugfix: Correctly initialize the new atom, don’t float dock windows

This commit is contained in:
Michael Stapelberg
2009-06-13 12:18:16 +02:00
parent 9f9e21dc7f
commit 02fa3c2cb8
2 changed files with 4 additions and 0 deletions

View File

@ -256,6 +256,8 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child,
new->force_reconfigure = true;
new->container = NULL;
SLIST_INSERT_HEAD(&(c_ws->screen->dock_clients), new, dock_clients);
/* If its a dock we cant make it float, so we break */
break;
} else if (atom[i] == atoms[_NET_WM_WINDOW_TYPE_DIALOG]) {
/* Set the dialog window to automatically floating, will be used below */
new->floating = FLOATING_AUTO_ON;