aboutsummaryrefslogtreecommitdiff
path: root/quirks.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-06-26 14:10:40 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-06-29 13:38:23 +0000
commitba46a039aca734bb284c22ba5d5bddf5407e3848 (patch)
treed5fe1a26a1cf107cbec555d4a54a54cb4a42f4e2 /quirks.c
parentwayland: add viewport object to sub-surface struct (diff)
wayland: refactor: wrap wl_surface pointers in a wayl_surface struct
And add a viewport object to accompany the surface (to be used when scaling the surface). Also rename the wl_surf_subsurf struct to wayl_sub_surface, and add a wayl_surface object to it, rather than a plain wl_surface pointer (to also get the viewport pointer).
Diffstat (limited to 'quirks.c')
-rw-r--r--quirks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quirks.c b/quirks.c
index bf9bc7fb..9769f1ff 100644
--- a/quirks.c
+++ b/quirks.c
@@ -89,5 +89,5 @@ quirk_sway_subsurface_unmap(struct terminal *term)
if (!is_sway())
return;
- wl_surface_damage_buffer(term->window->surface, 0, 0, INT32_MAX, INT32_MAX);
+ wl_surface_damage_buffer(term->window->surface.surf, 0, 0, INT32_MAX, INT32_MAX);
}