Skip to content

Commit

Permalink
directvt#571 WIP: Fix a minimized state caused by Win+D or so (regres…
Browse files Browse the repository at this point in the history
…sion)
  • Loading branch information
o-sdn-o committed Aug 24, 2024
1 parent c8e011e commit 0cbf798
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/netxs/desktopio/gui.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2179,7 +2179,13 @@ namespace netxs::gui
void check_window(twod coor)
{
if (fsmode != state::normal) return;
if (auto delta = coor - master.area.coor)
if (coor == master.hidden) // We are in an implicit hidden state caused by Win+D or so.
{
log("%%Set window to minimized state (implicit).", prompt::gui);
fsmode = state::minimized;
for (auto p : { &master, &blinky, &footer, &header }) p->hide();
}
else if (auto delta = coor - master.area.coor)
{
bell::enqueue(This(), [&, delta](auto& /*boss*/) // Perform corrections.
{
Expand Down

0 comments on commit 0cbf798

Please sign in to comment.