diff options
author | Yaniv Kamay <ykamay@redhat.com> | 2009-12-26 17:11:18 +0200 |
---|---|---|
committer | Yaniv Kamay <ykamay@redhat.com> | 2009-12-28 12:36:21 +0200 |
commit | 62248734bdf23d70e3ec16d1881d7c96ca9f85db (patch) | |
tree | 38cc373b8807f95679cdf50b1385a1e5f5c0e262 /client/display_channel.cpp | |
parent | c6435ea02bb43e8f5285c5966283cbbf92e23f4e (diff) | |
download | spice-62248734bdf23d70e3ec16d1881d7c96ca9f85db.tar.gz spice-62248734bdf23d70e3ec16d1881d7c96ca9f85db.tar.xz spice-62248734bdf23d70e3ec16d1881d7c96ca9f85db.zip |
client: move visibility change logic from screen to app
Diffstat (limited to 'client/display_channel.cpp')
-rw-r--r-- | client/display_channel.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/client/display_channel.cpp b/client/display_channel.cpp index 0050a21c..9d10bc7b 100644 --- a/client/display_channel.cpp +++ b/client/display_channel.cpp @@ -88,22 +88,6 @@ private: AutoRef<RedScreen> _screen; }; -class DisplayMarkEvent: public Event { -public: - DisplayMarkEvent(int screen_id) - : _screen_id (screen_id) - { - } - - virtual void response(AbstractProcessLoop& events_loop) - { - static_cast<Application*>(events_loop.get_owner())->hide_splash(_screen_id); - } - -private: - int _screen_id; -}; - #define CLIP_ARRAY_SIZE 1500 #define CLIP_ARRAY_SHIFT 500 @@ -1290,7 +1274,7 @@ void DisplayChannel::handle_mark(RedPeer::InMessage *message) area.right = _x_res; area.bottom = _y_res; - AutoRef<DisplayMarkEvent> event(new DisplayMarkEvent(get_id())); + AutoRef<VisibilityEvent> event(new VisibilityEvent(get_id())); get_client().push_event(*event); set_rect_area(area); } |