Skip to content

Add monitor connection events#106

Merged
PrzemyslawKlys merged 1 commit intov2-speedygonzalesfrom
expand-monitorwatcher-for-device-change-events
Jul 8, 2025
Merged

Add monitor connection events#106
PrzemyslawKlys merged 1 commit intov2-speedygonzalesfrom
expand-monitorwatcher-for-device-change-events

Conversation

@PrzemyslawKlys
Copy link
Copy Markdown
Member

Summary

  • extend MonitorWatcher with MonitorConnected and MonitorDisconnected
  • use WM_DEVICECHANGE notifications via new DeviceChangeWindow
  • expose native device change constants
  • test monitor connection and disconnection handling

Testing

  • dotnet test Sources/DesktopManager.Tests/DesktopManager.Tests.csproj --framework net8.0

https://chatgpt.com/codex/tasks/task_e_686d81246e8c832e9eab4c94717cded0

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 8, 2025

Codecov Report

Attention: Patch coverage is 83.82353% with 11 lines in your changes missing coverage. Please review.

Project coverage is 52.32%. Comparing base (417a80c) to head (f001802).
Report is 15 commits behind head on v2-speedygonzales.

Files with missing lines Patch % Lines
Sources/DesktopManager/MonitorWatcher.cs 83.58% 5 Missing and 6 partials ⚠️
Additional details and impacted files
@@                  Coverage Diff                  @@
##           v2-speedygonzales     #106      +/-   ##
=====================================================
+ Coverage              50.69%   52.32%   +1.63%     
=====================================================
  Files                     26       28       +2     
  Lines                   1298     1397      +99     
  Branches                 200      217      +17     
=====================================================
+ Hits                     658      731      +73     
- Misses                   571      588      +17     
- Partials                  69       78       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@PrzemyslawKlys PrzemyslawKlys merged commit d0e6981 into v2-speedygonzales Jul 8, 2025
9 checks passed
@PrzemyslawKlys PrzemyslawKlys deleted the expand-monitorwatcher-for-device-change-events branch July 8, 2025 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant