fix non-popup root window(nested_form) issues

This commit is contained in:
Jinhao
2015-12-18 01:00:33 +08:00
parent 25743b14a9
commit 1446849454
3 changed files with 56 additions and 11 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;
}