summaryrefslogtreecommitdiffstats
path: root/client/monitor.h
diff options
context:
space:
mode:
authorArnon Gilboa <agilboa@redhat.com>2009-12-30 13:41:58 +0200
committerYaniv Kamay <ykamay@redhat.com>2009-12-30 22:15:02 +0200
commitea9af22e62fdae7fc0bd707ef60bcf82ec3c4551 (patch)
tree2de4eb88b9b71c49515b0deb8b2be82bfb992546 /client/monitor.h
parent02a07b2c067e629749cbe8a9f9cfbfb487a512d7 (diff)
downloadspice-ea9af22e62fdae7fc0bd707ef60bcf82ec3c4551.tar.gz
spice-ea9af22e62fdae7fc0bd707ef60bcf82ec3c4551.tar.xz
spice-ea9af22e62fdae7fc0bd707ef60bcf82ec3c4551.zip
spice: position mouse in primary monitor center after full screen toggle
-move _focused & _pointer_in_window from RedWindow to RedWindow_p's -move shadow focus & cursor handling to sync() -add reset_cursor_pos() to Platform -Monitor set_mode()/restore() use virtual do_set_mode()/do_restore()
Diffstat (limited to 'client/monitor.h')
-rw-r--r--client/monitor.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/monitor.h b/client/monitor.h
index 59ec1e06..7a4ba3f2 100644
--- a/client/monitor.h
+++ b/client/monitor.h
@@ -29,8 +29,8 @@ public:
void set_free() {_free = true;}
void set_used() {_free = false;}
- virtual void set_mode(int width, int height) = 0;
- virtual void restore() = 0;
+ void set_mode(int width, int height);
+ void restore();
virtual int get_depth() = 0;
virtual Point get_position() = 0;
virtual Point get_size() const = 0;
@@ -41,6 +41,8 @@ public:
protected:
virtual ~Monitor() {}
+ virtual void do_set_mode(int width, int height) = 0;
+ virtual void do_restore() = 0;
private:
int _id;