Skip to content

Commit

Permalink
core: temporairly disable foreign_toplevel dynamic bind
Browse files Browse the repository at this point in the history
ref #147
  • Loading branch information
vaxerski committed Dec 31, 2023
1 parent 0a318a7 commit 54a3025
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/PortalManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,12 @@ void CPortalManager::onGlobal(void* data, struct wl_registry* registry, uint32_t
else if (INTERFACE == wl_shm_interface.name)
m_sWaylandConnection.shm = (wl_shm*)wl_registry_bind(registry, name, &wl_shm_interface, version);

else if (INTERFACE == zwlr_foreign_toplevel_manager_v1_interface.name)
else if (INTERFACE == zwlr_foreign_toplevel_manager_v1_interface.name) {
m_sHelpers.toplevel = std::make_unique<CToplevelManager>(registry, name, version);

// remove when another fix is found for https://github.com/hyprwm/xdg-desktop-portal-hyprland/issues/147
m_sHelpers.toplevel->activate();
}
}

void CPortalManager::onGlobalRemoved(void* data, struct wl_registry* registry, uint32_t name) {
Expand Down

0 comments on commit 54a3025

Please sign in to comment.