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:
Norman Feske 2024-10-04 12:31:38 +02:00 committed by Christian Helmuth
parent 4dd5c6ff8a
commit 03a23ad987

View File

@ -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() };
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