Implement clients going automatically into floating

This commit is contained in:
Michael Stapelberg
2009-05-31 00:31:18 +02:00
parent 706c44509e
commit 0cb5d7448d
9 changed files with 49 additions and 21 deletions

View File

@ -339,7 +339,7 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child,
/* Ensure that it is below all floating clients */
Client *first_floating;
SLIST_FOREACH(first_floating, &(new->container->workspace->focus_stack), focus_clients)
if (first_floating->floating)
if (first_floating->floating >= FLOATING_AUTO_ON)
break;
if (first_floating != SLIST_END(&(new->container->workspace->focus_stack))) {
@ -349,6 +349,8 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child,
}
}
new->initialized = true;
/* Check if the window already got the fullscreen hint set */
xcb_atom_t *state;
if ((preply = xcb_get_property_reply(conn, state_cookie, NULL)) != NULL &&