diff options
| author | Tom Englund <tomenglund26@gmail.com> | 2025-07-07 16:18:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-07 16:18:06 +0200 |
| commit | 54369adffa1d7fba01e523125a420b04154dc5f7 (patch) | |
| tree | a6b80f61470082e6898fa2a7dda66277d0c064f6 /src/protocols/Viewporter.cpp | |
| parent | d23ed852fc6942d28f78006b01c9a853f8ff194e (diff) | |
internal: iso C++ prohibits anonymous structs (#10955)
turn on -Wpedantic and name the anonymous struct.
Diffstat (limited to 'src/protocols/Viewporter.cpp')
| -rw-r--r-- | src/protocols/Viewporter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocols/Viewporter.cpp b/src/protocols/Viewporter.cpp index b7144814..f13d7540 100644 --- a/src/protocols/Viewporter.cpp +++ b/src/protocols/Viewporter.cpp @@ -15,7 +15,7 @@ CViewportResource::CViewportResource(SP<CWpViewport> resource_, SP<CWLSurfaceRes return; } - m_surface->m_pending.updated.viewport = true; + m_surface->m_pending.updated.bits.viewport = true; if (x == -1 && y == -1) { m_surface->m_pending.viewport.hasDestination = false; @@ -37,7 +37,7 @@ CViewportResource::CViewportResource(SP<CWpViewport> resource_, SP<CWLSurfaceRes return; } - m_surface->m_pending.updated.viewport = true; + m_surface->m_pending.updated.bits.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); |
