mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-18 23:28:29 +00:00
Add Input::Session::exclusive() interface
This interface allows a GUI client to express the intent to exclusively observe relative motion events while locking the absolute pointer position. This patch merely extends the interface without implementing it. As this change touches os/include/input/component.h, it moves the manage/dissolve operations into the class, ensuring the call of dissolve at destruction time. Issue #5355
This commit is contained in:
committed by
Christian Helmuth
parent
318d641266
commit
d7830a0ce6
@ -125,7 +125,8 @@ namespace Liquid_fb {
|
||||
}
|
||||
|
||||
|
||||
class Liquid_fb::Main : public Scout::Event_handler
|
||||
class Liquid_fb::Main : public Scout::Event_handler,
|
||||
private Input::Session_component::Action
|
||||
{
|
||||
private:
|
||||
|
||||
@ -162,7 +163,16 @@ class Liquid_fb::Main : public Scout::Event_handler
|
||||
_graphics_backend { _env.rm(), _gui, _heap, _max_size,
|
||||
_initial_position, _initial_size };
|
||||
|
||||
Input::Session_component _input_session_component { _env, _env.ram() };
|
||||
Input::Session_component _input_session_component {
|
||||
_env.ep(), _env.ram(), _env.rm(), *this };
|
||||
|
||||
/**
|
||||
* Input::Session_component::Action interface
|
||||
*/
|
||||
void exclusive_input_requested(bool enabled) override
|
||||
{
|
||||
_gui.input.exclusive(enabled);
|
||||
}
|
||||
|
||||
bool const _window_content_initialized =
|
||||
(init_window_content(_env.ram(), _env.rm(), _heap, _input_session_component,
|
||||
|
Reference in New Issue
Block a user