summaryrefslogtreecommitdiffstats
path: root/client/screen.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/screen.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/screen.h')
-rw-r--r--client/screen.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/screen.h b/client/screen.h
index d81ebf83..2b40d774 100644
--- a/client/screen.h
+++ b/client/screen.h
@@ -78,6 +78,7 @@ public:
void set_monitor(Monitor *monitor) { _monitor = monitor;}
Monitor* get_monitor() { return _monitor;}
RedWindow* get_window() { return &_window;}
+ bool is_out_of_sync() { return _out_of_sync;}
void set_cursor(LocalCursor* cursor);
void hide_cursor();
void exit_full_screen();
@@ -118,7 +119,6 @@ private:
void notify_new_size();
void adjust_window_rect(int x, int y);
void save_position();
- bool is_out_of_sync() { return _out_of_sync;}
void __show_full_screen();
bool _invalidate(const SpiceRect& rect, bool urgent, uint64_t& update_mark);