File patch.txt of Package hyprland

diff --git a/src/managers/screenshare/CursorshareSession.cpp b/src/managers/screenshare/CursorshareSession.cpp
index 5ccc3d22..a67fb6b7 100644
--- a/src/managers/screenshare/CursorshareSession.cpp
+++ b/src/managers/screenshare/CursorshareSession.cpp
@@ -44,8 +44,12 @@ void CCursorshareSession::calculateConstraints() {
     m_constraintsChanged    = true;
 
     // cursor is hidden, keep the previous constraints and render 0 alpha
-    if (!cursorImage.pBuffer)
+    if (!cursorImage.pBuffer) {
+        m_format     = DRM_FORMAT_ARGB8888;
+        m_bufferSize = m_bufferSize != Vector2D(0, 0) ? m_bufferSize : Vector2D(64, 64);
+        m_hotspot    = m_hotspot != Vector2D(0, 0) ? m_hotspot : Vector2D(0, 0);
         return;
+    }
 
     // TODO: should cursor share have a format bit flip for RGBA?
     if (auto attrs = cursorImage.pBuffer->shm(); attrs.success) {
openSUSE Build Service is sponsored by