From 17caaf1159cf41ee2df457da10a2993eeea77a62 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 28 Nov 2010 22:07:54 +0100 Subject: [PATCH] Correctly update the _NET_WM_STATE hint when *not* going into fullscreen (when already in fullscreen) --- src/con.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/con.c b/src/con.c index 80f69a6e..ba15279e 100644 --- a/src/con.c +++ b/src/con.c @@ -382,11 +382,10 @@ void con_toggle_fullscreen(Con *con) { LOG("Not entering fullscreen mode, container (%p/%s) " "already is in fullscreen mode\n", fullscreen, fullscreen->name); - return; + } else { + /* 2: enable fullscreen */ + con->fullscreen_mode = CF_OUTPUT; } - - /* 2: enable fullscreen */ - con->fullscreen_mode = CF_OUTPUT; } else { /* 1: disable fullscreen */ con->fullscreen_mode = CF_NONE; -- 2.39.5