diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-12-05 17:57:59 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-12-05 17:57:59 +0000 |
| commit | 6cf716f182d2cd7deb26a5ba966657bdbedb9c1f (patch) | |
| tree | 2cc677adb310d695505a823f7f183ec56be899ed /src/Compositor.cpp | |
| parent | 9fb24ac1e974c399979190b0d4c86643304dfc7e (diff) | |
fix handle finding
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 9cf5e272..cbb8218b 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -920,8 +920,9 @@ CWindow* CCompositor::getWindowFromSurface(wlr_surface* pSurface) { CWindow* CCompositor::getWindowFromHandle(uint32_t handle) { 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 nullptr; |
