diff options
author | Yaniv Kamay <ykamay@redhat.com> | 2009-11-16 21:15:19 +0200 |
---|---|---|
committer | Yaniv Kamay <ykamay@redhat.com> | 2009-11-30 18:08:16 +0200 |
commit | 6f4736e08be2dfa7fec33d5bca56e33ae2f7af6f (patch) | |
tree | 6e033524cd399dbf8383f2c350ddbb6b016b4d96 /client/inputs_channel.cpp | |
parent | 3b51087b3656b111886c7397d0ddd499a96f9e2d (diff) | |
download | spice-6f4736e08be2dfa7fec33d5bca56e33ae2f7af6f.tar.gz spice-6f4736e08be2dfa7fec33d5bca56e33ae2f7af6f.tar.xz spice-6f4736e08be2dfa7fec33d5bca56e33ae2f7af6f.zip |
client: split inputs handler
Diffstat (limited to 'client/inputs_channel.cpp')
-rw-r--r-- | client/inputs_channel.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/inputs_channel.cpp b/client/inputs_channel.cpp index e1b63964..13f6554a 100644 --- a/client/inputs_channel.cpp +++ b/client/inputs_channel.cpp @@ -50,7 +50,8 @@ public: virtual void response(AbstractProcessLoop& events_loop) { - static_cast<Application*>(events_loop.get_owner())->set_inputs_handler(_channel); + static_cast<Application*>(events_loop.get_owner())->set_key_handler(_channel); + static_cast<Application*>(events_loop.get_owner())->set_mouse_handler(_channel); AttachFunc func(_channel); _channel.get_client().for_each_channel(func); } @@ -91,7 +92,8 @@ public: virtual void do_response(AbstractProcessLoop& events_loop) { - static_cast<Application*>(events_loop.get_owner())->remove_inputs_handler(_channel); + static_cast<Application*>(events_loop.get_owner())->remove_key_handler(_channel); + static_cast<Application*>(events_loop.get_owner())->remove_mouse_handler(_channel); DetachFunc detach_func; _channel.get_client().for_each_channel(detach_func); } |