summaryrefslogtreecommitdiffstats
path: root/client/display_channel.cpp
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2010-11-23 21:07:56 +0100
committerHans de Goede <hdegoede@redhat.com>2010-11-25 11:23:02 +0100
commitaa3e19bfa461b322b0d0e6f362870e493b72ef00 (patch)
tree8230bc708ba193e9624e2a3e4847a9064af54ac4 /client/display_channel.cpp
parenteb3efa3cbb8a94340c39bc56b65541592c965fc7 (diff)
downloadspice-aa3e19bfa461b322b0d0e6f362870e493b72ef00.tar.gz
spice-aa3e19bfa461b322b0d0e6f362870e493b72ef00.tar.xz
spice-aa3e19bfa461b322b0d0e6f362870e493b72ef00.zip
spicec: Don't show a white screen if guest resolution does not fit fullscreen
Currently when going / starting fullscreen if the guest resolution for one of the monitors is higher then that monitor on the client can handle, we show a white screen. Leaving the user stuck (unless they know the fullscreen key switch combi) with a white screen when starting the client fullscreen from the XPI. This patch changes the client to fall back to windowed mode in this case instead.
Diffstat (limited to 'client/display_channel.cpp')
-rw-r--r--client/display_channel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/display_channel.cpp b/client/display_channel.cpp
index c371f4a5..1d5ebf34 100644
--- a/client/display_channel.cpp
+++ b/client/display_channel.cpp
@@ -57,7 +57,7 @@ public:
{
Application* app = (Application*)events_loop.get_owner();
_channel.screen()->lock_size();
- _channel.screen()->resize(_width, _height);
+ app->resize_screen(_channel.screen(), _width, _height);
_channel.create_canvas(0, app->get_canvas_types(), _width, _height, _format);
}