Bugfix: Don’t allow fullscreen floating windows to be moved (Thanks Sasha)

This commit is contained in:
Michael Stapelberg 2010-03-27 04:08:50 +01:00
parent ffa388f194
commit 2ac12eca17
1 changed files with 5 additions and 0 deletions

View 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);