From: Michael Stapelberg Date: Sat, 27 Mar 2010 03:08:50 +0000 (+0100) Subject: Bugfix: Don’t allow fullscreen floating windows to be moved (Thanks Sasha) X-Git-Tag: 3.e~6^2~19 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2ac12eca170184b53f4fc9caa87012392285089e;p=i3%2Fi3 Bugfix: Don’t allow fullscreen floating windows to be moved (Thanks Sasha) --- 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);