Bugfix: Correctly cleanup stack_windows when setting clients to floating

This fixes ticket #44
This commit is contained in:
Michael Stapelberg
2009-05-30 11:35:32 +02:00
parent ac6561019b
commit b1eb93326f
5 changed files with 9 additions and 7 deletions

View File

@ -23,6 +23,7 @@
#include "xcb.h"
#include "debug.h"
#include "layout.h"
#include "client.h"
/* On which border was the dragging initiated? */
typedef enum { BORDER_LEFT, BORDER_RIGHT, BORDER_TOP, BORDER_BOTTOM} border_t;
@ -78,7 +79,7 @@ void toggle_floating_mode(xcb_connection_t *conn, Client *client) {
LOG("Entering floating for client %08x\n", client->child);
/* Remove the client of its container */
CIRCLEQ_REMOVE(&(con->clients), client, clients);
client_remove_from_container(conn, client, con, false);
client->container = NULL;
if (con->currently_focused == client) {