Skip to content

Commit

Permalink
fix: minimize button remaining hovered on Windows (#5175)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz authored Feb 14, 2024
1 parent fe1e498 commit 4a5d4ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
- Bugfix: Fixed rare crash with Image Uploader when closing a split right after starting an upload. (#4971)
- Bugfix: Fixed an issue on macOS where the image uploader would keep prompting the user even after they clicked "Yes, don't ask again". (#5011)
- Bugfix: Hide the Usercard button in the User Info Popup when in special channels. (#4972)
- Bugfix: Fixed support for Windows 11 Snap layouts. (#4994)
- Bugfix: Fixed support for Windows 11 Snap layouts. (#4994, #5175)
- Bugfix: Fixed some windows appearing between screens. (#4797)
- Bugfix: Fixed a crash that could occur when using certain features in a Usercard after closing the split from which it was created. (#5034, #5051)
- Bugfix: Fixed a crash that could occur when using certain features in a Reply popup after closing the split from which it was created. (#5036, #5051)
Expand Down
7 changes: 7 additions & 0 deletions src/widgets/BaseWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,13 @@ bool BaseWindow::handleSIZE(MSG *msg)
QPoint(rect.right - 1, rect.bottom - 1));
}
this->useNextBounds_.stop();

if (msg->wParam == SIZE_MINIMIZED && this->ui_.titlebarButtons)
{
// Windows doesn't send a WM_NCMOUSELEAVE event when clicking
// the minimize button, so we have to emulate it.
this->ui_.titlebarButtons->leave();
}
}
}
return false;
Expand Down

0 comments on commit 4a5d4ef

Please sign in to comment.