mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[all] convert KVMFR frame bools to flags in a bitfield
This will allow us to add additional flags in the future while remaining backwards compatible with the host.
This commit is contained in:
@@ -758,16 +758,17 @@ int main_frameThread(void * unused)
|
||||
break;
|
||||
}
|
||||
|
||||
if (frame->requestActivation)
|
||||
if (frame->flags && FRAME_FLAG_REQUEST_ACTIVATION)
|
||||
g_state.ds->requestActivation();
|
||||
|
||||
if (g_params.autoScreensaver && g_state.autoIdleInhibitState != frame->blockScreensaver)
|
||||
const bool blockScreensaver = frame->flags & FRAME_FLAG_BLOCK_SCREENSAVER;
|
||||
if (g_params.autoScreensaver && g_state.autoIdleInhibitState != blockScreensaver)
|
||||
{
|
||||
if (frame->blockScreensaver)
|
||||
if (blockScreensaver)
|
||||
g_state.ds->inhibitIdle();
|
||||
else
|
||||
g_state.ds->uninhibitIdle();
|
||||
g_state.autoIdleInhibitState = frame->blockScreensaver;
|
||||
g_state.autoIdleInhibitState = blockScreensaver;
|
||||
}
|
||||
|
||||
const uint64_t t = nanotime();
|
||||
|
Reference in New Issue
Block a user