shell: Center window in fullscreen if needed

If modeset fails With DRIVER method, and always with FILL method
we want to center the window.
This commit is contained in:
Alexander Larsson 2013-05-28 16:23:40 +02:00 committed by Kristian Høgsberg
parent f82b6cac5e
commit d622ed3fbf

View file

@ -1829,11 +1829,14 @@ shell_configure_fullscreen(struct shell_surface *shsurf)
output->width,
output->height);
break;
} else
} else {
restore_output_mode(output);
center_on_output(surface, output);
}
}
break;
case WL_SHELL_SURFACE_FULLSCREEN_METHOD_FILL:
center_on_output(surface, output);
break;
default:
break;