diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-12-20 15:53:42 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-12-20 15:53:42 -0500 |
commit | 800d20611cc5aaf59cac2bf222cdfbcbe6a6329c (patch) | |
tree | 3163968040e65ed0e917764658fea93884ad9394 /swaylock/main.c | |
parent | 2b34ba99d42e935d0390e66dd36b7182fa9f5464 (diff) |
Clear swaylock properly during re-render
Fixes #999
Diffstat (limited to 'swaylock/main.c')
-rw-r--r-- | swaylock/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/swaylock/main.c b/swaylock/main.c index 3dee6e4f..f738b09d 100644 --- a/swaylock/main.c +++ b/swaylock/main.c @@ -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); |