mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-05 20:25:59 +01:00
11 lines
374 B
C++
11 lines
374 B
C++
|
#include "MiscFunctions.hpp"
|
||
|
#include "../defines.hpp"
|
||
|
|
||
|
void addWLSignal(wl_signal* pSignal, wl_listener* pListener, void* pOwner, std::string ownerString) {
|
||
|
ASSERT(pSignal);
|
||
|
ASSERT(pListener);
|
||
|
|
||
|
wl_signal_add(pSignal, pListener);
|
||
|
|
||
|
Debug::log(LOG, "Registered signal for owner %x: %x -> %x (owner: %s)", pOwner, pSignal, pListener, ownerString.c_str());
|
||
|
}
|