Use the same fix/workaround as in output_update_for_layout_change() to
make sure that the cursor is also visible after (re-)enabling an output
in handle_output_power_manager_set_mode().
void
handle_output_power_manager_set_mode(struct wl_listener *listener, void *data)
{
+ struct server *server = wl_container_of(listener, server,
+ output_power_manager_set_mode);
struct wlr_output_power_v1_set_mode_event *event = data;
switch (event->mode) {
wlr_output_rollback(event->output);
}
wlr_output_commit(event->output);
+ /*
+ * Re-set the cursor image so that the cursor
+ * isn't invisible on the newly enabled output.
+ */
+ cursor_update_image(&server->seat);
break;
}
}