mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-04-21 07:07:44 +00:00
[client] main: make activation requests optional
This commit is contained in:
@@ -569,7 +569,8 @@ int main_frameThread(void * unused)
|
||||
break;
|
||||
}
|
||||
|
||||
g_state.ds->requestActivation();
|
||||
if (g_params.requestActivation)
|
||||
g_state.ds->requestActivation();
|
||||
|
||||
while(g_state.state == APP_STATE_RUNNING && !g_state.stopVideo)
|
||||
{
|
||||
@@ -782,7 +783,8 @@ int main_frameThread(void * unused)
|
||||
|
||||
overlaySplash_show(false);
|
||||
|
||||
if (frame->flags & FRAME_FLAG_REQUEST_ACTIVATION)
|
||||
if (frame->flags & FRAME_FLAG_REQUEST_ACTIVATION &&
|
||||
g_params.requestActivation)
|
||||
g_state.ds->requestActivation();
|
||||
|
||||
const bool blockScreensaver = frame->flags & FRAME_FLAG_BLOCK_SCREENSAVER;
|
||||
|
||||
Reference in New Issue
Block a user