[host] windows: detect whether screensaver is disabled in the guest

This will allow us to add an option to disable the screensaver on the client
when an application in the guest requests it. This behaviour may be useful
when the guest is doing media playback.
This commit is contained in:
Quantum
2021-02-03 17:42:54 -05:00
committed by Geoffrey McRae
parent cc2104c699
commit 8e98f863b6
6 changed files with 35 additions and 1 deletions

View File

@@ -23,10 +23,11 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#pragma once
#include <stdint.h>
#include <stdbool.h>
#include "types.h"
#define KVMFR_MAGIC "KVMFR---"
#define KVMFR_VERSION 8
#define KVMFR_VERSION 9
#define LGMP_Q_POINTER 1
#define LGMP_Q_FRAME 2
@@ -73,6 +74,7 @@ typedef struct KVMFRFrame
uint32_t pitch; // the row pitch (stride in bytes or the compressed frame size)
uint32_t offset; // offset from the start of this header to the FrameBuffer header
uint32_t mouseScalePercent; // movement scale factor of the mouse (relates to DPI of display, 100 = no scale)
bool blockScreensaver; // whether the guest has requested to block screensavers
}
KVMFRFrame;