Prototype detecting fullscreen apps to override brightness #49
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Depends on #47.
I prototyped the code to detect fullscreen foreground windows on Windows systems.
This appears to work on my machine with two screens, whenever switching to an app that is fullscreened on either screen. When switching to another non-fullscreen window, it drops brightness.
I'm calling this a prototype, because it currently just calls "pause" which forces day brightness on all monitors, but for this feature I'd want it to only change brightness of the monitor that has the fullscreen window. It probably also needs a setting for users to disable this feature, and maybe set custom brightness.
For only changing brightness of one screen, I am unsure how to implement this well. One day I had in mind is just get the device id/path and create an override similar to how you can do that in GUI.