]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Don’t allow fullscreen floating windows to be moved (Thanks Sasha)
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 27 Mar 2010 03:08:50 +0000 (04:08 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 27 Mar 2010 03:08:50 +0000 (04:08 +0100)
src/floating.c

index 61e955996ebe97d639e6006eb0d47a09510adf71..7e62eea58ff1e83c37358bffe4bfa17e0c2fec90 100644 (file)
@@ -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);