aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/SMsgHandler.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2011-11-14 15:44:11 +0000
committerPierre Ossman <ossman@cendio.se>2011-11-14 15:44:11 +0000
commitc754cceeca839b7caeca9c62bb2e08688725c458 (patch)
treee375bfe896e0d1ff7915955b31922881bb6aa55d /common/rfb/SMsgHandler.cxx
parent6b4aea78b8510e871f2f964222b8182a2db38cc8 (diff)
downloadtigervnc-c754cceeca839b7caeca9c62bb2e08688725c458.tar.gz
tigervnc-c754cceeca839b7caeca9c62bb2e08688725c458.zip
Basic infrastructure to support fences.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4798 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/SMsgHandler.cxx')
-rw-r--r--common/rfb/SMsgHandler.cxx14
1 files changed, 13 insertions, 1 deletions
diff --git a/common/rfb/SMsgHandler.cxx b/common/rfb/SMsgHandler.cxx
index 730bc2c0..ff15e196 100644
--- a/common/rfb/SMsgHandler.cxx
+++ b/common/rfb/SMsgHandler.cxx
@@ -1,5 +1,5 @@
/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
- * Copyright 2009 Pierre Ossman for Cendio AB
+ * Copyright 2009-2011 Pierre Ossman for Cendio AB
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -41,14 +41,26 @@ void SMsgHandler::setPixelFormat(const PixelFormat& pf)
void SMsgHandler::setEncodings(int nEncodings, rdr::S32* encodings)
{
+ bool firstFence;
+
+ firstFence = !cp.supportsFence;
+
cp.setEncodings(nEncodings, encodings);
+
supportsLocalCursor();
+
+ if (cp.supportsFence && firstFence)
+ supportsFence();
}
void SMsgHandler::supportsLocalCursor()
{
}
+void SMsgHandler::supportsFence()
+{
+}
+
void SMsgHandler::setDesktopSize(int fb_width, int fb_height,
const ScreenSet& layout)
{