From d65bdf025f9685f3b332aefffe6f8b5c8dbe8827 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Sun, 14 Nov 2021 23:37:16 +0000 Subject: Initial experiments with layer shell. --- src/surface.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/surface.c') diff --git a/src/surface.c b/src/surface.c index 700074c..cbc6c94 100644 --- a/src/surface.c +++ b/src/surface.c @@ -30,6 +30,12 @@ void surface_draw( struct color *color, struct image *texture) { + wl_egl_window_resize( + surface->egl.window, + surface->width, + surface->height, + 0, + 0); egl_make_current(&surface->egl); gl_clear(&surface->gl, color); @@ -46,5 +52,7 @@ void surface_draw( gl_draw_texture(&surface->gl, texture, x, y, width, height); } + wl_surface_damage_buffer(surface->wl_surface, 0, 0, INT32_MAX, INT32_MAX); + egl_swap_buffers(&surface->egl); } -- cgit v1.2.3