Correctly update the _NET_WM_STATE hint when *not* going into fullscreen (when already in fullscreen)

This commit is contained in:
Michael Stapelberg 2010-11-28 22:07:54 +01:00
parent b7e1ae13c5
commit 17caaf1159
1 changed files with 3 additions and 4 deletions

View File

@ -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;
}
} else {
/* 1: disable fullscreen */
con->fullscreen_mode = CF_NONE;