From 49f8822a8fd1a1d4a21451bc5d3566e4eb15942e Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 20 Mar 2009 13:02:50 +0000 Subject: Minimal client side support for the extended desktop size protocol. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3699 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- common/rfb/CMsgHandler.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'common/rfb/CMsgHandler.cxx') diff --git a/common/rfb/CMsgHandler.cxx b/common/rfb/CMsgHandler.cxx index 4b338524..fa675dcc 100644 --- a/common/rfb/CMsgHandler.cxx +++ b/common/rfb/CMsgHandler.cxx @@ -1,4 +1,5 @@ /* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. + * Copyright 2009 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 @@ -17,6 +18,7 @@ */ #include #include +#include using namespace rfb; @@ -34,6 +36,15 @@ void CMsgHandler::setDesktopSize(int width, int height) cp.height = height; } +void CMsgHandler::setExtendedDesktopSize(int reason, int result, int width, int height) +{ + if ((reason == reasonClient) && (result != resultSuccess)) + return; + + cp.width = width; + cp.height = height; +} + void CMsgHandler::setCursor(int w, int h, const Point& hotspot, void* data, void* mask) { } -- cgit v1.2.3