diff options
author | Vaxry <[email protected]> | 2024-04-25 00:58:40 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-04-25 01:10:43 +0100 |
commit | ecf282d331a8aa19c0fe10c739cd31d3b3ab64a2 (patch) | |
tree | 8e2e83df8613f5a18e0a584911004b47ff688bf0 /src/protocols/ToplevelExport.cpp | |
parent | 72e31d3335982382c289302a41f7144009c5c82f (diff) | |
download | Hyprland-ecf282d331a8aa19c0fe10c739cd31d3b3ab64a2.tar.gz Hyprland-ecf282d331a8aa19c0fe10c739cd31d3b3ab64a2.zip |
wlr-foreign-toplevel: move to new impl
Diffstat (limited to 'src/protocols/ToplevelExport.cpp')
-rw-r--r-- | src/protocols/ToplevelExport.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/protocols/ToplevelExport.cpp b/src/protocols/ToplevelExport.cpp index e2006afb..166ba1af 100644 --- a/src/protocols/ToplevelExport.cpp +++ b/src/protocols/ToplevelExport.cpp @@ -1,5 +1,6 @@ #include "ToplevelExport.hpp" #include "../Compositor.hpp" +#include "ForeignToplevelWlr.hpp" #include <algorithm> @@ -39,17 +40,12 @@ CToplevelExportProtocolManager::CToplevelExportProtocolManager() { Debug::log(LOG, "ToplevelExportManager started successfully!"); } -wlr_foreign_toplevel_handle_v1* zwlrHandleFromResource(wl_resource* resource) { - // we can't assert here, but it doesnt matter. - return (wlr_foreign_toplevel_handle_v1*)wl_resource_get_user_data(resource); -} - static void handleCaptureToplevel(wl_client* client, wl_resource* resource, uint32_t frame, int32_t overlay_cursor, uint32_t handle) { g_pProtocolManager->m_pToplevelExportProtocolManager->captureToplevel(client, resource, frame, overlay_cursor, g_pCompositor->getWindowFromHandle(handle)); } static void handleCaptureToplevelWithWlr(wl_client* client, wl_resource* resource, uint32_t frame, int32_t overlay_cursor, wl_resource* handle) { - g_pProtocolManager->m_pToplevelExportProtocolManager->captureToplevel(client, resource, frame, overlay_cursor, g_pCompositor->getWindowFromZWLRHandle(handle)); + g_pProtocolManager->m_pToplevelExportProtocolManager->captureToplevel(client, resource, frame, overlay_cursor, PROTO::foreignToplevelWlr->windowFromHandleResource(handle)); } static void handleDestroy(wl_client* client, wl_resource* resource) { |