shell: Position DRIVER fullscreen surfaces at origin

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.
This commit is contained in:
Alexander Larsson 2013-05-28 16:23:32 +02:00 committed by Kristian Høgsberg
parent d622ed3fbf
commit 690f718834
1 changed files with 3 additions and 0 deletions

View File

@ -1823,6 +1823,9 @@ shell_configure_fullscreen(struct shell_surface *shsurf)
shsurf->fullscreen.framerate};
if (weston_output_switch_mode(output, &mode, surface->buffer_scale) == 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,