mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[host/client] kvmfr: request activation based on guest state
This commit is contained in:
parent
30c57f411d
commit
fd28d0604e
@ -758,6 +758,9 @@ int main_frameThread(void * unused)
|
||||
break;
|
||||
}
|
||||
|
||||
if (frame->requestActivation)
|
||||
g_state.ds->requestActivation();
|
||||
|
||||
if (g_params.autoScreensaver && g_state.autoIdleInhibitState != frame->blockScreensaver)
|
||||
{
|
||||
if (frame->blockScreensaver)
|
||||
|
@ -139,6 +139,7 @@ typedef struct KVMFRFrame
|
||||
uint32_t damageRectsCount; // the number of damage rectangles (zero for full-frame damage)
|
||||
FrameDamageRect damageRects[KVMFR_MAX_DAMAGE_RECTS];
|
||||
bool blockScreensaver; // whether the guest has requested to block screensavers
|
||||
bool requestActivation; // whether the guest has requested activation since the last frame
|
||||
}
|
||||
KVMFRFrame;
|
||||
|
||||
|
@ -276,6 +276,7 @@ static bool sendFrame(void)
|
||||
fi->pitch = frame.pitch;
|
||||
fi->offset = app.pageSize - FrameBufferStructSize;
|
||||
fi->blockScreensaver = os_blockScreensaver();
|
||||
fi->requestActivation = true; // TODO
|
||||
app.frameValid = true;
|
||||
|
||||
fi->damageRectsCount = frame.damageRectsCount;
|
||||
|
Loading…
Reference in New Issue
Block a user