From bf92a0c6178325963dcce0beb55f219c4c586bae Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 6 Mar 2009 16:53:47 +0100 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20switch=20focus=20when=20in=20ful?= =?utf8?q?lscreen=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/commands.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/commands.c b/src/commands.c index f03b36a7..d7d0fa90 100644 --- a/src/commands.c +++ b/src/commands.c @@ -65,6 +65,11 @@ static void focus_thing(xcb_connection_t *conn, direction_t direction, thing_t t /* There always is a container. If not, current_col or current_row is wrong */ assert(container != NULL); + if (container->workspace->fullscreen_client != NULL) { + LOG("You're in fullscreen mode. Won't switch focus\n"); + return; + } + /* TODO: for horizontal default layout, this has to be expanded to LEFT/RIGHT */ if (direction == D_UP || direction == D_DOWN) { if (thing == THING_WINDOW) -- 2.39.5