mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-02 08:42:52 +00:00
gui_fb: reset input sigh when closing the session
This patch mirrors the logic already in place for the framebuffer session.
This commit is contained in:
parent
4dd5c6ff8a
commit
03a23ad987
@ -328,7 +328,23 @@ struct Gui_fb::Main : View_updater, Input::Session_component::Action
|
|||||||
|
|
||||||
Framebuffer::Session_component _fb_session { _env.pd(), _gui, *this, _initial_mode() };
|
Framebuffer::Session_component _fb_session { _env.pd(), _gui, *this, _initial_mode() };
|
||||||
|
|
||||||
Static_root<Input::Session> _input_root { _input_session.cap() };
|
struct Input_root : Static_root<Input::Session>
|
||||||
|
{
|
||||||
|
Main &_main;
|
||||||
|
|
||||||
|
Input_root(Main &main)
|
||||||
|
:
|
||||||
|
Static_root<Input::Session>(main._input_session.cap()),
|
||||||
|
_main(main)
|
||||||
|
{ }
|
||||||
|
|
||||||
|
void close(Capability<Session>) override
|
||||||
|
{
|
||||||
|
_main._input_session.sigh(Signal_context_capability());
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
Input_root _input_root { *this };
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Attach root interfaces to the entry point
|
* Attach root interfaces to the entry point
|
||||||
|
Loading…
x
Reference in New Issue
Block a user