mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-03 05:31:59 -07:00
log signals
This commit is contained in:
11
src/helpers/MiscFunctions.cpp
Normal file
11
src/helpers/MiscFunctions.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#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());
|
||||
}
|
Reference in New Issue
Block a user