improve stability of event

This commit is contained in:
Jinhao
2016-04-10 15:23:44 +08:00
parent 88b9149f54
commit 07b5b19545
23 changed files with 118 additions and 121 deletions

View File

@@ -184,12 +184,11 @@ namespace API
{
auto iwd = reinterpret_cast<basic_window*>(wd);
internal_scope_guard lock;
if (restrict::wd_manager().available(iwd) && iwd->set_events(gep))
{
restrict::bedrock.evt_operation().make(wd, gep);
return true;
}
if (restrict::wd_manager().available(iwd))
iwd->set_events(gep);
return false;
}
void set_scheme(window wd, widget_colors* wdg_colors)