Skip to content

Commit

Permalink
directvt#86 WIP: directvt#86 Implement MinimizeWindow desktop action
Browse files Browse the repository at this point in the history
  • Loading branch information
o-sdn-o committed Dec 18, 2024
1 parent 5f4be7e commit f7f53e7
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/vtm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1811,8 +1811,18 @@ namespace netxs::app::vtm
}
void minimize_focused_windows(hids& gear)
{
log("minimize_focused_windows");
gear.set_handled();
items.foreach(gear.id, [&](auto& item_ptr)
{
bell::enqueue(item_ptr->object, [gear_id = gear.id](auto& boss) // Keep the focus tree intact while processing key events.
{
if (auto gear_ptr = boss.bell::getref<hids>(gear_id))
{
auto& gear = *gear_ptr;
boss.bell::signal(tier::release, e2::form::size::minimize, gear);
}
});
gear.set_handled();
});
}
void maximize_focused_windows(hids& gear)
{
Expand Down

0 comments on commit f7f53e7

Please sign in to comment.