From 2ac12eca170184b53f4fc9caa87012392285089e Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 27 Mar 2010 04:08:50 +0100 Subject: [PATCH] =?utf8?q?Bugfix:=20Don=E2=80=99t=20allow=20fullscreen=20f?= =?utf8?q?loating=20windows=20to=20be=20moved=20(Thanks=20Sasha)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 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); -- 2.39.5