desktop: cleanup, unify desktop elements as views (#12563)
This commit is contained in:
parent
834f019bab
commit
920353370b
105 changed files with 2636 additions and 2337 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#include "XDGBell.hpp"
|
||||
#include "core/Compositor.hpp"
|
||||
#include "../desktop/Window.hpp"
|
||||
#include "../desktop/view/Window.hpp"
|
||||
#include "../managers/EventManager.hpp"
|
||||
#include "../Compositor.hpp"
|
||||
|
||||
|
|
@ -31,10 +31,10 @@ CXDGSystemBellManagerResource::CXDGSystemBellManagerResource(UP<CXdgSystemBellV1
|
|||
}
|
||||
|
||||
for (const auto& w : g_pCompositor->m_windows) {
|
||||
if (!w->m_isMapped || w->m_isX11 || !w->m_xdgSurface || !w->m_wlSurface)
|
||||
if (!w->m_isMapped || w->m_isX11 || !w->m_xdgSurface || !w->wlSurface())
|
||||
continue;
|
||||
|
||||
if (w->m_wlSurface->resource() == SURFACE) {
|
||||
if (w->wlSurface()->resource() == SURFACE) {
|
||||
g_pEventManager->postEvent(SHyprIPCEvent{
|
||||
.event = "bell",
|
||||
.data = std::format("{:x}", rc<uintptr_t>(w.get())),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue