diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2024-07-31 20:47:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-31 21:47:26 +0200 |
| commit | 37e1411e8d94fe8f3fb678588a7df9b8f931910f (patch) | |
| tree | ce91aa3984b646f8a8569976edb8e78c85919ee5 /src/protocols/InputMethodV2.cpp | |
| parent | 548968279926a73d7ff19a9a185c977c50d56756 (diff) | |
core/surface/buffer: Buffer lock/release fixes (#7110)
Diffstat (limited to 'src/protocols/InputMethodV2.cpp')
| -rw-r--r-- | src/protocols/InputMethodV2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocols/InputMethodV2.cpp b/src/protocols/InputMethodV2.cpp index def4d837..fd306f09 100644 --- a/src/protocols/InputMethodV2.cpp +++ b/src/protocols/InputMethodV2.cpp @@ -107,14 +107,14 @@ CInputMethodPopupV2::CInputMethodPopupV2(SP<CZwpInputPopupSurfaceV2> resource_, }); listeners.commitSurface = surface->events.commit.registerListener([this](std::any d) { - if (pSurface->current.buffer && !mapped) { + if (pSurface->current.texture && !mapped) { mapped = true; pSurface->map(); events.map.emit(); return; } - if (!pSurface->current.buffer && mapped) { + if (!pSurface->current.texture && mapped) { mapped = false; pSurface->unmap(); events.unmap.emit(); |
