From 62248734bdf23d70e3ec16d1881d7c96ca9f85db Mon Sep 17 00:00:00 2001 From: Yaniv Kamay Date: Sat, 26 Dec 2009 17:11:18 +0200 Subject: client: move visibility change logic from screen to app --- client/display_channel.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'client/display_channel.cpp') 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 _screen; }; -class DisplayMarkEvent: public Event { -public: - DisplayMarkEvent(int screen_id) - : _screen_id (screen_id) - { - } - - virtual void response(AbstractProcessLoop& events_loop) - { - static_cast(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 event(new DisplayMarkEvent(get_id())); + AutoRef event(new VisibilityEvent(get_id())); get_client().push_event(*event); set_rect_area(area); } -- cgit