diff --git a/client/main.c b/client/main.c index 50c4320b..5a62fd9e 100644 --- a/client/main.c +++ b/client/main.c @@ -93,7 +93,7 @@ int renderThread(void * unused) if (memcmp(state.shm->magic, KVMGFX_HEADER_MAGIC, sizeof(KVMGFX_HEADER_MAGIC)) != 0) continue; - if (state.shm->version != 2) + if (state.shm->version != KVMGFX_HEADER_VERSION) continue; bool ready = false; diff --git a/common/KVMGFXHeader.h b/common/KVMGFXHeader.h index d4cda089..9174ce3a 100644 --- a/common/KVMGFXHeader.h +++ b/common/KVMGFXHeader.h @@ -19,7 +19,8 @@ Place, Suite 330, Boston, MA 02111-1307 USA #include -#define KVMGFX_HEADER_MAGIC "[[KVMGFXHeader]]" +#define KVMGFX_HEADER_MAGIC "[[KVMGFXHeader]]" +#define KVMGFX_HEADER_VERSION 3 typedef enum FrameType {