diff options
author | vaxerski <[email protected]> | 2023-07-18 14:49:12 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-07-18 14:49:12 +0200 |
commit | 3a80c726528448bbb6dc18a253fba7ddadaae572 (patch) | |
tree | 4fd98777b23a4915df6c028405dc6d4cff23d1f9 | |
parent | e72eaebd39681c504ff2e3e0e6914bb5d0ef49e5 (diff) | |
download | Hyprland-3a80c726528448bbb6dc18a253fba7ddadaae572.tar.gz Hyprland-3a80c726528448bbb6dc18a253fba7ddadaae572.zip |
oops
-rw-r--r-- | src/protocols/WaylandProtocol.cpp | 6 | ||||
-rw-r--r-- | src/protocols/XDGOutput.cpp | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/protocols/WaylandProtocol.cpp b/src/protocols/WaylandProtocol.cpp index cebef70c..94f48756 100644 --- a/src/protocols/WaylandProtocol.cpp +++ b/src/protocols/WaylandProtocol.cpp @@ -11,11 +11,15 @@ CWaylandResource::CWaylandResource(wl_client* client, const wl_interface* wlInte m_pWLClient = client; m_bDestroyInDestructor = destroyInDestructor; + + Debug::log(LOG, "[wl res %lx] created", m_pWLResource); } CWaylandResource::~CWaylandResource() { if (m_pWLResource && m_bDestroyInDestructor) wl_resource_destroy(m_pWLResource); + + Debug::log(LOG, "[wl res %lx] destroyed (wl_resource_destroy %s)", m_pWLResource, (m_pWLResource && m_bDestroyInDestructor ? "sent" : "not sent")); } bool CWaylandResource::good() { @@ -31,6 +35,8 @@ void CWaylandResource::setImplementation(const void* impl, void* data, wl_resour wl_resource_set_implementation(m_pWLResource, impl, data, df); + Debug::log(LOG, "[wl res %lx] set impl to %lx", m_pWLResource, impl); + m_bImplementationSet = true; } diff --git a/src/protocols/XDGOutput.cpp b/src/protocols/XDGOutput.cpp index 9a195240..372f4af6 100644 --- a/src/protocols/XDGOutput.cpp +++ b/src/protocols/XDGOutput.cpp @@ -64,7 +64,7 @@ CXDGOutputProtocol::CXDGOutputProtocol(const wl_interface* iface, const int& ver }); } -void CXDGOutputProtocol::onManagerGetXDGOutput(wl_client* client, wl_resource* resource, uint32_t id, wl_resource * 4) { +void CXDGOutputProtocol::onManagerGetXDGOutput(wl_client* client, wl_resource* resource, uint32_t id, wl_resource* outputResource) { const auto OUTPUT = wlr_output_from_resource(outputResource); if (!OUTPUT) |