From ad95d5bb1febf068f782dc43264c7db3e0d1b4e1 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 21 Jan 2011 22:09:04 +0100 Subject: [PATCH] =?UTF-8?q?bugfix:=20you=20can=E2=80=99t=20unfullscreen=20?= =?UTF-8?q?workspaces=20(Thanks=20Merovius)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/con.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/con.c b/src/con.c index b151d297..82574b34 100644 --- a/src/con.c +++ b/src/con.c @@ -406,6 +406,12 @@ void con_fix_percent(Con *con, int action) { */ void con_toggle_fullscreen(Con *con) { Con *workspace, *fullscreen; + + if (con->type == CT_WORKSPACE) { + DLOG("You cannot make a workspace fullscreen.\n"); + return; + } + DLOG("toggling fullscreen for %p / %s\n", con, con->name); if (con->fullscreen_mode == CF_NONE) { /* 1: check if there already is a fullscreen con */