From: Alexander Larsson <al...@redhat.com>

When a window is fullscreened with DRIVER method and we succeeded
in changing mode we need to actually move the surface to the
origin of the output, or it won't be used for scanout.
---
 src/shell.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/shell.c b/src/shell.c
index 1443328..07be564 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -1802,6 +1802,9 @@ shell_configure_fullscreen(struct shell_surface *shsurf)
                                shsurf->fullscreen.framerate};
 
                        if (weston_output_switch_mode(output, &mode) == 0) {
+                               weston_surface_set_position(surface,
+                                                           output->x - surf_x,
+                                                           output->y - surf_y);
                                
weston_surface_configure(shsurf->fullscreen.black_surface,
                                                         output->x - surf_x,
                                                         output->y - surf_y,
-- 
1.8.1.4

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to