[PATCH 9/9] shell: Center window in fullscreen if needed
alexl at redhat.com
alexl at redhat.com
Tue May 28 07:23:40 PDT 2013
From: Alexander Larsson <alexl at redhat.com>
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 eac8471..ebeef55 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -1832,11 +1832,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;
--
1.8.1.4
More information about the wayland-devel
mailing list