Skip to content

Add monitor power events#100

Merged
PrzemyslawKlys merged 4 commits intov2-speedygonzalesfrom
extend-monitorwatcher-for-power-events
Jul 8, 2025
Merged

Add monitor power events#100
PrzemyslawKlys merged 4 commits intov2-speedygonzalesfrom
extend-monitorwatcher-for-power-events

Conversation

@PrzemyslawKlys
Copy link
Copy Markdown
Member

Summary

  • extend MonitorWatcher with monitor power notifications
  • handle WM_POWERBROADCAST in new PowerBroadcastWindow
  • expose MonitorPoweredOff and MonitorPoweredOn events
  • add power notification tests
  • update MonitorWatcher example

Testing

  • dotnet build Sources/DesktopManager.sln -c Release
  • dotnet test Sources/DesktopManager.sln -c Release (fails: Could not find 'mono' host)

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

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 8, 2025

Codecov Report

Attention: Patch coverage is 91.22807% with 5 lines in your changes missing coverage. Please review.

Project coverage is 50.69%. Comparing base (1092e4e) to head (417a80c).
Report is 31 commits behind head on v2-speedygonzales.

Files with missing lines Patch % Lines
Sources/DesktopManager/MonitorWatcher.cs 91.07% 2 Missing and 3 partials ⚠️
Additional details and impacted files
@@                  Coverage Diff                  @@
##           v2-speedygonzales     #100      +/-   ##
=====================================================
+ Coverage              49.04%   50.69%   +1.64%     
=====================================================
  Files                     21       26       +5     
  Lines                   1150     1298     +148     
  Branches                 177      200      +23     
=====================================================
+ Hits                     564      658      +94     
- Misses                   530      571      +41     
- Partials                  56       69      +13     

☔ 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 3a11764 into v2-speedygonzales Jul 8, 2025
9 checks passed
@PrzemyslawKlys PrzemyslawKlys deleted the extend-monitorwatcher-for-power-events branch July 8, 2025 19:38
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