From 9d3404b090979f191f3818ae2a490e3299c51014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 23 May 2013 08:26:49 +0200 Subject: [PATCH] Map the Wayland compositing surface as fullscreen Now it's just like X11, isn't it ;-) --- egl_wayland_backend.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/egl_wayland_backend.cpp b/egl_wayland_backend.cpp index ccac0b58a1..d3aca3ea95 100644 --- a/egl_wayland_backend.cpp +++ b/egl_wayland_backend.cpp @@ -600,13 +600,7 @@ bool WaylandBackend::createSurface() kError(1212) << "Creating Wayland Egl window failed"; return false; } - wl_region *region = wl_compositor_create_region(m_compositor); - wl_region_add(region, 0, 0, displayWidth(), displayHeight()); - wl_surface_set_opaque_region(m_surface, region); - wl_region_destroy(region); -// wl_shell_surface_set_fullscreen(m_shellSurface, WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT, 0, NULL); - wl_shell_surface_set_toplevel(m_shellSurface); - handleConfigure(this, m_shellSurface, 0, displayWidth(), displayHeight()); + wl_shell_surface_set_fullscreen(m_shellSurface, WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT, 0, NULL); return true; }