@@ -671,6 +671,19 @@ Server::Server(Config *config) : config(config) {
671671 };
672672 wl_signal_add (&wlr_text_input_manager->events .text_input , &new_text_input);
673673
674+ // system bell
675+ // wlr_xdg_system_bell = wlr_xdg_system_bell_v1_create(display, 1);
676+
677+ // run_system_bell.notify = [](wl_listener *listener, void *data) {
678+ // Server *server = wl_container_of(listener, server, run_system_bell);
679+ // [[maybe_unused]] const auto event =
680+ // static_cast<wlr_xdg_system_bell_v1_ring_event *>(data);
681+
682+ // server->spawn("ffplay -nodisp -autoexit "
683+ // "/usr/share/sounds/freedesktop/stereo/bell.oga");
684+ // };
685+ // wl_signal_add(&wlr_xdg_system_bell->events.ring, &run_system_bell);
686+
674687 // foreign toplevel list
675688 wlr_foreign_toplevel_list =
676689 wlr_ext_foreign_toplevel_list_v1_create (display, 1 );
@@ -895,6 +908,7 @@ Server::~Server() {
895908 wl_list_remove (&new_pointer_constraint.link );
896909 wl_list_remove (&xdg_activation_activate.link );
897910 wl_list_remove (&new_text_input.link );
911+ // wl_list_remove(&run_system_bell.link);
898912
899913 LayerSurface *surface, *tmp;
900914 wl_list_for_each_safe (surface, tmp, &layer_surfaces, link) delete surface;
0 commit comments