summaryrefslogtreecommitdiff
path: root/src/key.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/key.c')
-rw-r--r--src/key.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/key.c b/src/key.c
index a67596e..1b3000e 100644
--- a/src/key.c
+++ b/src/key.c
@@ -338,9 +338,10 @@ void vwm_key_pressed(vwm_t *vwm, Window win, XKeyPressedEvent *keypress)
vwm_composite_toggle(vwm);
break;
- case XK_apostrophe: /* reset snowflakes of the focused window, suppressed when not compositing */
- if (vwin) {
- vwm_overlay_xwin_reset_snowflakes(vwm, vwin->xwindow);
+ case XK_apostrophe: /* reset snowflakes of the focused window */
+ if (vwin && vwin->xwindow->overlay) {
+ vwm_overlay_reset_snowflakes(vwm->overlays, vwin->xwindow->overlay);
+ vwm_composite_damage_win(vwm, vwin->xwindow);
}
break;
© All Rights Reserved