Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting or Disconnecting screens breaks the app #493

Open
MarkStruik opened this issue Oct 16, 2023 · 1 comment
Open

Connecting or Disconnecting screens breaks the app #493

MarkStruik opened this issue Oct 16, 2023 · 1 comment

Comments

@MarkStruik
Copy link

After disconnecting and connecting my screen the application hard breaks:

2023-10-13 10:41:35.8553|FATAL|workspacer.Program|exception occurred, quitting workspacer: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
   at System.Collections.Generic.List`1.set_Item(Int32 index, T value)
   at workspacer.Workspace.SwapWindows(IWindow left, IWindow right)
   at workspacer.WorkspaceManager.TrySwapWindowToMouse(IWindow window)
   at workspacer.WorkspaceManager.UpdateWindow(IWindow window, WindowUpdateType type)|System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
   at System.Collections.Generic.List`1.set_Item(Int32 index, T value)
   at workspacer.Workspace.SwapWindows(IWindow left, IWindow right)
   at workspacer.WorkspaceManager.TrySwapWindowToMouse(IWindow window)
   at workspacer.WorkspaceManager.UpdateWindow(IWindow window, WindowUpdateType type)
@Aareon
Copy link
Contributor

Aareon commented Oct 16, 2023

This should be a relatively simple fix. Thank you for sharing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants