From d622ed3fbff12f4ccedfe52da5b9ae06c9af4f98 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 28 May 2013 16:23:40 +0200 Subject: [PATCH] shell: Center window in fullscreen if needed If modeset fails With DRIVER method, and always with FILL method we want to center the window. --- src/shell.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/shell.c b/src/shell.c index 399ca69..9d99201 100644 --- a/src/shell.c +++ b/src/shell.c @@ -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; -- 2.7.4