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 = false;
|
||||||
|
|
||||||
|
bool _key_xray_initialized = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* X-Ray criterion depending on hovered domain
|
* X-Ray criterion depending on hovered domain
|
||||||
*/
|
*/
|
||||||
|
@ -209,6 +211,14 @@ void Xray_trigger::Main::_handle_update()
|
||||||
{
|
{
|
||||||
_config.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 */
|
/* remember X-Ray mode prior applying the changes */
|
||||||
bool const orig_xray = _xray();
|
bool const orig_xray = _xray();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user