Clear swaylock properly during re-render

Fixes #999
This commit is contained in:
Drew DeVault 2016-12-20 15:53:42 -05:00
parent d985b210b2
commit 434e46b9d7

5
main.c
View File

@ -570,6 +570,11 @@ void render(struct render_data *render_data) {
int wwidth = window->width * window->scale;
int wheight = window->height * window->scale;
cairo_save(window->cairo);
cairo_set_operator(window->cairo, CAIRO_OPERATOR_CLEAR);
cairo_paint(window->cairo);
cairo_restore(window->cairo);
// Reset the transformation matrix
cairo_identity_matrix(window->cairo);