mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-29 14:45:58 +01:00
fix handle finding
This commit is contained in:
parent
9fb24ac1e9
commit
6cf716f182
1 changed files with 2 additions and 1 deletions
|
@ -920,9 +920,10 @@ CWindow* CCompositor::getWindowFromSurface(wlr_surface* pSurface) {
|
||||||
|
|
||||||
CWindow* CCompositor::getWindowFromHandle(uint32_t handle) {
|
CWindow* CCompositor::getWindowFromHandle(uint32_t handle) {
|
||||||
for (auto& w : m_vWindows) {
|
for (auto& w : m_vWindows) {
|
||||||
if ((uintptr_t)w.get() == (uintptr_t)handle)
|
if ((uint32_t)(((uint64_t)w.get()) & 0xFFFFFFFF) == handle) {
|
||||||
return w.get();
|
return w.get();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue