]> git.sur5r.net Git - i3/i3/commitdiff
Don’t use current workspace
authorMichael Stapelberg <michael+git@stapelberg.de>
Sat, 14 Feb 2009 07:39:50 +0000 (08:39 +0100)
committerMichael Stapelberg <michael+git@stapelberg.de>
Sat, 14 Feb 2009 07:39:50 +0000 (08:39 +0100)
src/handlers.c

index 47a517ea0cc404f5a52c54b557a2329e49a297f3..793c88a90f913893c95beed7fdd23e649ca6ce6b 100644 (file)
@@ -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;
 }