From 2ac12eca170184b53f4fc9caa87012392285089e Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 27 Mar 2010 04:08:50 +0100 Subject: [PATCH] =?UTF-8?q?Bugfix:=20Don=E2=80=99t=20allow=20fullscreen=20?= =?UTF-8?q?floating=20windows=20to=20be=20moved=20(Thanks=20Sasha)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/floating.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/floating.c b/src/floating.c index 61e95599..7e62eea5 100644 --- a/src/floating.c +++ b/src/floating.c @@ -488,6 +488,11 @@ void floating_focus_direction(xcb_connection_t *conn, Client *currently_focused, void floating_move(xcb_connection_t *conn, Client *currently_focused, direction_t direction) { DLOG("floating move\n"); + if (currently_focused->fullscreen) { + DLOG("Cannot move fullscreen windows\n"); + return; + } + Rect destination = currently_focused->rect; Rect *screen = &(currently_focused->workspace->output->rect);