From: Michael Stapelberg Date: Sun, 28 Nov 2010 21:07:54 +0000 (+0100) Subject: Correctly update the _NET_WM_STATE hint when *not* going into fullscreen (when alread... X-Git-Tag: tree-pr1~21 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=17caaf1159cf41ee2df457da10a2993eeea77a62;p=i3%2Fi3 Correctly update the _NET_WM_STATE hint when *not* going into fullscreen (when already in fullscreen) --- 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;