fix: check swapchain before setting hw

ref #12
This commit is contained in:
Virt 2024-07-21 19:39:59 +02:00
commit 28f33155f2

View file

@ -254,6 +254,8 @@ bool CDynamicCursors::setHardware(CPointerManager* pointers, SP<CPointerManager:
return false; return false;
auto PMONITOR = state->monitor.lock(); auto PMONITOR = state->monitor.lock();
if (!PMONITOR->cursorSwapchain)
return false;
// we need to transform the hotspot manually as we need to indent it by the padding // we need to transform the hotspot manually as we need to indent it by the padding
int diagonal = pointers->currentCursorImage.size.size(); int diagonal = pointers->currentCursorImage.size.size();