diff options
Diffstat (limited to 'src/protocols/Viewporter.cpp')
| -rw-r--r-- | src/protocols/Viewporter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/protocols/Viewporter.cpp b/src/protocols/Viewporter.cpp index d14e7ee5..674b8373 100644 --- a/src/protocols/Viewporter.cpp +++ b/src/protocols/Viewporter.cpp @@ -15,6 +15,8 @@ CViewportResource::CViewportResource(SP<CWpViewport> resource_, SP<CWLSurfaceRes return; } + surface->pending.updated.viewport = true; + if (x == -1 && y == -1) { surface->pending.viewport.hasDestination = false; return; @@ -35,6 +37,8 @@ CViewportResource::CViewportResource(SP<CWpViewport> resource_, SP<CWLSurfaceRes return; } + surface->pending.updated.viewport = true; + double x = wl_fixed_to_double(fx), y = wl_fixed_to_double(fy), w = wl_fixed_to_double(fw), h = wl_fixed_to_double(fh); if (x == -1 && y == -1 && w == -1 && h == -1) { |
