mirror of
https://github.com/virtcode/hypr-dynamic-cursors
synced 2025-09-19 08:03:21 +02:00
test: print sw rendering reason
This commit is contained in:
parent
cf8028803f
commit
052037d74d
1 changed files with 3 additions and 0 deletions
|
@ -62,6 +62,7 @@ void CDynamicCursors::renderSoftware(CPointerManager* pointers, SP<CMonitor> pMo
|
||||||
auto state = pointers->stateFor(pMonitor);
|
auto state = pointers->stateFor(pMonitor);
|
||||||
auto zoom = resultShown.scale;
|
auto zoom = resultShown.scale;
|
||||||
|
|
||||||
|
Debug::log(LOG, "[dynamic-cursors] current sw cursor status: hw failure = {}, locks = {}", state->hardwareFailed, state->softwareLocks);
|
||||||
if ((!state->hardwareFailed && state->softwareLocks == 0)) {
|
if ((!state->hardwareFailed && state->softwareLocks == 0)) {
|
||||||
if (pointers->currentCursorImage.surface)
|
if (pointers->currentCursorImage.surface)
|
||||||
pointers->currentCursorImage.surface->resource()->frame(now);
|
pointers->currentCursorImage.surface->resource()->frame(now);
|
||||||
|
@ -357,6 +358,7 @@ void CDynamicCursors::calculate(EModeUpdate type) {
|
||||||
// lock software cursors if zooming
|
// lock software cursors if zooming
|
||||||
if (resultShown.scale > 1) {
|
if (resultShown.scale > 1) {
|
||||||
if (!zoomSoftware) {
|
if (!zoomSoftware) {
|
||||||
|
Debug::log(LOG, "[dynamic-cursors] locking sw cursors for zoom");
|
||||||
g_pPointerManager->lockSoftwareAll();
|
g_pPointerManager->lockSoftwareAll();
|
||||||
zoomSoftware = true;
|
zoomSoftware = true;
|
||||||
}
|
}
|
||||||
|
@ -365,6 +367,7 @@ void CDynamicCursors::calculate(EModeUpdate type) {
|
||||||
// damage so it is cleared properly
|
// damage so it is cleared properly
|
||||||
g_pPointerManager->damageIfSoftware();
|
g_pPointerManager->damageIfSoftware();
|
||||||
|
|
||||||
|
Debug::log(LOG, "[dynamic-cursors] unlocking sw cursors for zoom");
|
||||||
g_pPointerManager->unlockSoftwareAll();
|
g_pPointerManager->unlockSoftwareAll();
|
||||||
zoomSoftware = false;
|
zoomSoftware = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue