diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-04-30 20:02:30 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-04-30 20:02:30 +0100 |
| commit | dbb8b294d64c7a96692bf5c2485441223ef82d2e (patch) | |
| tree | 1d3b15313381ffe2c38f676044afbe3f5346e61b /src/protocols/SessionLock.cpp | |
| parent | 1f6657f037c27b3514d928aa60c3b8c5c05ab8d9 (diff) | |
sessionLock: fix incorrect protocol error raised
fixes #5816
Diffstat (limited to 'src/protocols/SessionLock.cpp')
| -rw-r--r-- | src/protocols/SessionLock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/SessionLock.cpp b/src/protocols/SessionLock.cpp index 4c4b1846..9b3062ea 100644 --- a/src/protocols/SessionLock.cpp +++ b/src/protocols/SessionLock.cpp @@ -22,7 +22,7 @@ CSessionLockSurface::CSessionLockSurface(SP<CExtSessionLockSurfaceV1> resource_, hyprListener_surfaceCommit.initCallback( &pSurface->events.commit, [this](void* owner, void* data) { - if (!pSurface->current.buffer) { + if (pSurface->pending.buffer_width <= 0 || pSurface->pending.buffer_height <= 0) { LOGM(ERR, "SessionLock attached a null buffer"); wl_resource_post_error(resource->resource(), EXT_SESSION_LOCK_SURFACE_V1_ERROR_NULL_BUFFER, "Null buffer attached"); return; |
