Merge branch 'develop' into prepare-utf8

This commit is contained in:
Jinhao
2016-01-03 14:18:03 +08:00
13 changed files with 522 additions and 108 deletions

View File

@@ -542,8 +542,8 @@ namespace API
{
auto iwd = reinterpret_cast<basic_window*>(wd);
internal_scope_guard lock;
if(restrict::wd_manager().available(iwd))
return reinterpret_cast<window>(iwd->other.category == category::flags::root ? iwd->owner : iwd->parent);
if (restrict::wd_manager().available(iwd))
return reinterpret_cast<window>(iwd->parent);
return nullptr;
}