diff options
author | Vaxry <[email protected]> | 2024-05-01 19:40:35 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-05-01 19:40:35 +0100 |
commit | 0237e39f74a7facf51d40bc4c95f6ce8ce3cdc2e (patch) | |
tree | cbce01b6c5832b02a5b43a862b1953f46143e870 /src/protocols/ForeignToplevelWlr.cpp | |
parent | 47b087950dcfaf6fdda63c4d5f13efda3508a6fb (diff) | |
download | Hyprland-0237e39f74a7facf51d40bc4c95f6ce8ce3cdc2e.tar.gz Hyprland-0237e39f74a7facf51d40bc4c95f6ce8ce3cdc2e.zip |
protocols: utilize hyprwayland-scanner 0.3.3 functions
stuff like ::version(), ::client(), ::error() etc
Diffstat (limited to 'src/protocols/ForeignToplevelWlr.cpp')
-rw-r--r-- | src/protocols/ForeignToplevelWlr.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/protocols/ForeignToplevelWlr.cpp b/src/protocols/ForeignToplevelWlr.cpp index 3f9e64a0..35d7b01c 100644 --- a/src/protocols/ForeignToplevelWlr.cpp +++ b/src/protocols/ForeignToplevelWlr.cpp @@ -107,7 +107,7 @@ void CForeignToplevelHandleWlr::sendMonitor(CMonitor* pMonitor) { if (lastMonitorID == (int64_t)pMonitor->ID) return; - const auto CLIENT = wl_resource_get_client(resource->resource()); + const auto CLIENT = resource->client(); struct wl_resource* outputResource; @@ -184,12 +184,12 @@ void CForeignToplevelWlrManager::onMap(PHLWINDOW pWindow) { if (finished) return; - const auto NEWHANDLE = PROTO::foreignToplevelWlr->m_vHandles.emplace_back(std::make_shared<CForeignToplevelHandleWlr>( - std::make_shared<CZwlrForeignToplevelHandleV1>(wl_resource_get_client(resource->resource()), wl_resource_get_version(resource->resource()), 0), pWindow)); + const auto NEWHANDLE = PROTO::foreignToplevelWlr->m_vHandles.emplace_back( + std::make_shared<CForeignToplevelHandleWlr>(std::make_shared<CZwlrForeignToplevelHandleV1>(resource->client(), resource->version(), 0), pWindow)); if (!NEWHANDLE->good()) { LOGM(ERR, "Couldn't create a foreign handle"); - wl_resource_post_no_memory(resource->resource()); + resource->noMemory(); PROTO::foreignToplevelWlr->m_vHandles.pop_back(); return; } |