core: use new typed signals from hu (#10853)
This commit is contained in:
parent
2f34ef141b
commit
78e9eddfb6
85 changed files with 667 additions and 865 deletions
|
|
@ -36,7 +36,7 @@ void IHLBuffer::onBackendRelease(const std::function<void()>& fn) {
|
|||
|
||||
m_backendReleaseQueuedFn = fn;
|
||||
|
||||
m_hlEvents.backendRelease = events.backendRelease.registerListener([this](std::any) {
|
||||
m_hlEvents.backendRelease = events.backendRelease.listen([this] {
|
||||
if (m_backendReleaseQueuedFn)
|
||||
m_backendReleaseQueuedFn();
|
||||
m_backendReleaseQueuedFn = nullptr;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ using namespace Hyprutils::OS;
|
|||
CDMABuffer::CDMABuffer(uint32_t id, wl_client* client, Aquamarine::SDMABUFAttrs const& attrs_) : m_attrs(attrs_) {
|
||||
g_pHyprRenderer->makeEGLCurrent();
|
||||
|
||||
m_listeners.resourceDestroy = events.destroy.registerListener([this](std::any d) {
|
||||
m_listeners.resourceDestroy = events.destroy.listen([this] {
|
||||
closeFDs();
|
||||
m_listeners.resourceDestroy.reset();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ class IDataSource {
|
|||
virtual void sendDndAction(wl_data_device_manager_dnd_action a);
|
||||
|
||||
struct {
|
||||
CSignal destroy;
|
||||
CSignalT<> destroy;
|
||||
} m_events;
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue