diff options
author | Hans de Goede <hdegoede@redhat.com> | 2010-11-23 21:07:56 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2010-11-25 11:26:35 +0100 |
commit | 6437f11de2ceee2be932143c5f3779e232ec3415 (patch) | |
tree | c26a9369565006f9b0178ed9805f5e4a74917023 /client/display_channel.cpp | |
parent | c8a034f2858f247d6a00ec1ad47de491b7e99575 (diff) | |
download | spice-6437f11de2ceee2be932143c5f3779e232ec3415.tar.gz spice-6437f11de2ceee2be932143c5f3779e232ec3415.tar.xz spice-6437f11de2ceee2be932143c5f3779e232ec3415.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.cpp | 2 |
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); } |