compositor: reorganize struct weston_buffer_viewport
Queueing in the Presentation extension requires splitting the viewport state into buffer state and surface state. To conveniently allow assigning only one, the other, or both, reorganize the weston_buffer_viewport structure. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
committed by
Kristian Høgsberg
parent
7ed251c119
commit
952b6c8004
@@ -2661,11 +2661,11 @@ shell_configure_fullscreen(struct shell_surface *shsurf)
|
||||
case WL_SHELL_SURFACE_FULLSCREEN_METHOD_DRIVER:
|
||||
if (shell_surface_is_top_fullscreen(shsurf)) {
|
||||
struct weston_mode mode = {0,
|
||||
surf_width * surface->buffer_viewport.scale,
|
||||
surf_height * surface->buffer_viewport.scale,
|
||||
surf_width * surface->buffer_viewport.buffer.scale,
|
||||
surf_height * surface->buffer_viewport.buffer.scale,
|
||||
shsurf->fullscreen.framerate};
|
||||
|
||||
if (weston_output_switch_mode(output, &mode, surface->buffer_viewport.scale,
|
||||
if (weston_output_switch_mode(output, &mode, surface->buffer_viewport.buffer.scale,
|
||||
WESTON_MODE_SWITCH_SET_TEMPORARY) == 0) {
|
||||
weston_view_set_position(shsurf->view,
|
||||
output->x - surf_x,
|
||||
|
||||
Reference in New Issue
Block a user