Skip to content

Conversation

@BornToBeRoot
Copy link
Owner

Changes proposed in this pull request

  • Update desktop size if view is split in dragablz
  • Added size changed event in dragged out window

Related issue(s)

Copilot generated summary

Provide a Copilot generated summary of the changes in this pull request.

Copilot summary

This pull request includes significant changes to handle window resize events and improve the focus and closure of embedded windows. The most important changes include adding a new method to handle window size events, modifying the logic for focusing embedded windows, and cleaning up unnecessary code.

Enhancements to window size handling:

Improvements to embedded window focus:

  • Source/NETworkManager/Controls/DragablzTabHostWindow.xaml.cs: Modified the FocusEmbeddedWindow method to find TabablzControl in the current window instead of the active window.
  • Source/NETworkManager/ViewModels/AWSSessionManagerHostViewModel.cs, Source/NETworkManager/ViewModels/PowerShellHostViewModel.cs, Source/NETworkManager/ViewModels/PuTTYHostViewModel.cs: Added whitespace for better readability in the FocusEmbeddedWindow method. [1] [2] [3]

Code cleanup:

  • Source/NETworkManager/Controls/DragablzTabHostWindow.xaml.cs: Removed redundant code for finding the active window in the MetroWindow_Activated method.
  • Source/NETworkManager/ViewModels/RemoteDesktopHostViewModel.cs, Source/NETworkManager/Views/RemoteDesktopHostView.xaml.cs: Removed the UpdateOnWindowResize method as it is now handled in the main window class. [1] [2]

To-Do

Contributing

By submitting this pull request, I confirm the following:

@mergify mergify bot merged commit 5e28465 into main Jan 1, 2025
3 of 4 checks passed
@mergify mergify bot deleted the fix/2971 branch January 1, 2025 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remote Desktop - Update desktop size if view is split in dragablz Remote Desktop - Add size changed event in dragged out window

2 participants