Skip to content

Conversation

@dremin
Copy link
Collaborator

@dremin dremin commented Jan 31, 2025

Performance improvements:

  • Use new shell hook messages in Win8+ for handling window monitor changes instead of event hook
  • Use new shell hook messages in Win8+ for full-screen app notifications
  • Adapt FullScreenHelper to use new TasksService events instead of a timer on Win8+

Fix handling of the minimize/restore animation:

  • Fixed NativeWindowEx message object passing so that the result value is actually used
  • Fix broken handling of HSHELL_GETMINRECT
  • Added event to ApplicationWindow that shells can handle to provide a button rect when requested that is used for HSHELL_GETMINRECT

Misc:

  • Added some properties to ApplicationWindow to simplify other code
  • Improve FullScreenHelper logic and logging
  • Fix ResetScreenCache on newer .NET versions (Error on FullScreenHelper.ResetScreenCache when vertical panel location changed #100)
  • Fix AppBarWindow initial position when on a secondary screen with high DPI and in auto-hide or no-appbar mode
  • Fix disabled windows, which can't be restored, being allowed to minimize

- Use new shell hook messages in Win8+ for handling window monitor changes instead of event hook, as well as for full-screen app notifications
- Adapt FullScreenHelper to use new TasksService events instead of a timer on Win8+
- Stop handling HSHELL_GETMINRECT as it was broken. Made some updates to this code to be more correct, but without success.
- Added some properties to ApplicationWindow to simplify other code
- Simplified code to bring a window to the front by using SwitchToThisWindow, which handles the special cases we used to handle
- Improve FullScreenHelper logic and logging
- Fix ResetScreenCache on newer .NET versions (#100)
Fixed NativeWindowEx message object passing so that the result value is actually used
Added event to ApplicationWindow that shells can handle to provide a button rect when requested
@dremin dremin requested a review from josuave January 31, 2025 06:13
@josuave josuave merged commit 7306747 into master Jan 31, 2025
1 check passed
@josuave josuave deleted the misc-window-fixes branch February 2, 2025 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants