sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 32f8ade7ab6228835144b519d927fd1eeaa2333a
parent cd0fca2ebf81c252b3743c4474a5fdbcd3e2afad
Author: emersion <contact@emersion.fr>
Date:   Wed, 23 May 2018 22:55:57 +0100

swaylock: don't try to render unconfigured surfaces

Diffstat:
Mswaylock/render.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/swaylock/render.c b/swaylock/render.c @@ -17,6 +17,9 @@ void render_frame(struct swaylock_surface *surface) { int buffer_width = surface->width * surface->scale; int buffer_height = surface->height * surface->scale; + if (buffer_width == 0 || buffer_height == 0) { + return; // not yet configured + } surface->current_buffer = get_next_buffer(state->shm, surface->buffers, buffer_width, buffer_height);