aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/xwayland
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-07-31 20:47:26 +0100
committerGitHub <[email protected]>2024-07-31 21:47:26 +0200
commit37e1411e8d94fe8f3fb678588a7df9b8f931910f (patch)
treece91aa3984b646f8a8569976edb8e78c85919ee5 /src/xwayland
parent548968279926a73d7ff19a9a185c977c50d56756 (diff)
downloadHyprland-37e1411e8d94fe8f3fb678588a7df9b8f931910f.tar.gz
Hyprland-37e1411e8d94fe8f3fb678588a7df9b8f931910f.zip
core/surface/buffer: Buffer lock/release fixes (#7110)
Diffstat (limited to 'src/xwayland')
-rw-r--r--src/xwayland/XSurface.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xwayland/XSurface.cpp b/src/xwayland/XSurface.cpp
index 107b22da..30ffbc68 100644
--- a/src/xwayland/XSurface.cpp
+++ b/src/xwayland/XSurface.cpp
@@ -62,12 +62,12 @@ void CXWaylandSurface::ensureListeners() {
});
listeners.commitSurface = surface->events.commit.registerListener([this](std::any d) {
- if (surface->pending.buffer && !mapped) {
+ if (surface->pending.texture && !mapped) {
map();
return;
}
- if (!surface->pending.buffer && mapped) {
+ if (!surface->pending.texture && mapped) {
unmap();
return;
}
@@ -131,7 +131,7 @@ void CXWaylandSurface::considerMap() {
return;
}
- if (surface->pending.buffer) {
+ if (surface->pending.texture) {
Debug::log(LOG, "XWayland surface: considerMap, sure, we have a buffer");
map();
return;