mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-02 22:28:10 +02:00
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:
parent
d622ed3fbf
commit
690f718834
1 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue