mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-21 02:01:38 +00:00
xray_trigger: make initial state configurable
This commit is contained in:
parent
0574cdf705
commit
d9d32847b1
@ -72,6 +72,8 @@ struct Xray_trigger::Main
|
||||
*/
|
||||
bool _key_xray = false;
|
||||
|
||||
bool _key_xray_initialized = false;
|
||||
|
||||
/**
|
||||
* X-Ray criterion depending on hovered domain
|
||||
*/
|
||||
@ -209,6 +211,14 @@ void Xray_trigger::Main::_handle_update()
|
||||
{
|
||||
_config.update();
|
||||
|
||||
/* define initial state once */
|
||||
if (!_key_xray_initialized) {
|
||||
_key_xray = _config.xml().attribute_value("initial", false);
|
||||
|
||||
_key_xray_initialized = true;
|
||||
_timer.trigger_once(10000);
|
||||
}
|
||||
|
||||
/* remember X-Ray mode prior applying the changes */
|
||||
bool const orig_xray = _xray();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user