fix some race conditions when maximize/fullscreen and change group

also should fix maximization/fullscreen in windows of not managed groups

Closes #326