From 9e4b7f35ca7e306c37da28f54581591458252d9b Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 14 Feb 2009 08:39:50 +0100 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20use=20current=20workspace?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/handlers.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/handlers.c b/src/handlers.c index 47a517ea..793c88a9 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -44,13 +44,14 @@ static void set_focus(xcb_connection_t *conn, Client *client) { } static void toggle_fullscreen(xcb_connection_t *conn, Client *client) { - c_ws->fullscreen_client = (client->fullscreen ? NULL : client); + Workspace *workspace = client->container->workspace; + + workspace->fullscreen_client = (client->fullscreen ? NULL : client); client->fullscreen = !client->fullscreen; if (client->fullscreen) { printf("Entering fullscreen mode...\n"); - Workspace *workspace = client->container->workspace; /* We just entered fullscreen mode, let’s configure the window */ uint32_t mask = XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y | @@ -398,5 +399,8 @@ int handle_client_message(void *data, xcb_connection_t *conn, xcb_client_message toggle_fullscreen(conn, client); } else { printf("unhandled clientmessage\n"); + return 0; } + + return 1; } -- 2.39.5