diff --git a/dwl.c b/dwl.c index 784a443..94e3370 100644 --- a/dwl.c +++ b/dwl.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -1895,6 +1896,8 @@ powermgrsetmodenotify(struct wl_listener *listener, void *data) { struct wlr_output_power_v1_set_mode_event *event = data; wlr_output_enable(event->output, event->mode); + if (event->mode) + wlr_output_damage_whole(event->output); wlr_output_commit(event->output); }