Merge branch 'hotfix-1.5.6' into develop-c++17

This commit is contained in:
Jinhao
2018-01-29 17:19:13 +08:00
10 changed files with 87 additions and 45 deletions

View File

@@ -821,6 +821,15 @@ namespace API
}
}
nana::optional<rectangle> window_rectangle(window wd)
{
auto iwd = reinterpret_cast<basic_window*>(wd);
internal_scope_guard lock;
if (restrict::wd_manager().available(iwd))
return rectangle(iwd->pos_owner, iwd->dimension);
return{};
}
bool get_window_rectangle(window wd, rectangle& r)
{
auto iwd = reinterpret_cast<basic_window*>(wd);