summaryrefslogtreecommitdiffstats
path: root/client/application.h
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/application.h
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/application.h')
-rw-r--r--client/application.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/application.h b/client/application.h
index 0e761ecc..5a5a488f 100644
--- a/client/application.h
+++ b/client/application.h
@@ -217,6 +217,7 @@ public:
void enter_full_screen();
void exit_full_screen();
bool toggle_full_screen();
+ void resize_screen(RedScreen *screen, int width, int height);
void minimize();
void set_title(const std::string& title);
void hide();
@@ -352,6 +353,7 @@ private:
bool _active;
bool _full_screen;
bool _changing_screens;
+ bool _out_of_sync;
int _exit_code;
RedScreen* _active_screen;
bool _keyboard_state[REDKEY_NUM_KEYS];