diff --git a/src/protocols/XDGBell.cpp b/src/protocols/XDGBell.cpp index 61f070ff..593d78fc 100644 --- a/src/protocols/XDGBell.cpp +++ b/src/protocols/XDGBell.cpp @@ -12,6 +12,14 @@ CXDGSystemBellManagerResource::CXDGSystemBellManagerResource(UPsetOnDestroy([this](CXdgSystemBellV1* r) { PROTO::xdgBell->destroyResource(this); }); m_resource->setRing([](CXdgSystemBellV1* r, wl_resource* toplevel) { + if (!toplevel) { + g_pEventManager->postEvent(SHyprIPCEvent{ + .event = "bell", + .data = "", + }); + return; + } + auto TOPLEVEL = CXDGToplevelResource::fromResource(toplevel); if (!TOPLEVEL) {