aboutsummaryrefslogtreecommitdiff
path: root/shm.c
diff options
context:
space:
mode:
Diffstat (limited to 'shm.c')
-rw-r--r--shm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/shm.c b/shm.c
index b9cc325c..59dcb2ac 100644
--- a/shm.c
+++ b/shm.c
@@ -281,8 +281,15 @@ shm_fini(void)
}
bool
+shm_can_scroll(void)
+{
+ return can_punch_hole;
+}
+
+bool
shm_scroll(struct wl_shm *shm, struct buffer *buf, int rows)
{
+ assert(can_punch_hole);
assert(buf->busy);
assert(buf->pix);
assert(buf->wl_buf);