Skip to content

Conversation

@Lain-B
Copy link
Collaborator

@Lain-B Lain-B commented Sep 2, 2024

Description

Fixes an issue where window and display capture on Windows would capture the first window or display on first creation. This is actually due to a design flaw in the properties view, but we need to fix it in the sources themselves to display the appropriate text to the user anyway.

Motivation and Context

It's not good to capture something without explicitly selecting it.

How Has This Been Tested?

Tested locally, seems fine.

Types of changes

  • Tweak (non-breaking change to improve existing functionality)

Checklist:

  • My code has been run through clang-format.
  • I have read the contributing document.
  • My code is not on the master branch.
  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.

This is due to the property view widget not having an item to select, so
it selects the first one, but we want to have specific text for this
anyway, so changing it here is still appropriate. (I don't want to touch
the properties view widget right now for the sake of my sanity)
Prevents Display capture from capturing the first display on creation.
This issue is due to the properties view combo box automatically
selecting the first item in the list by default, but this needs explicit
text anyway to indicate display, so this adds a "[Select a display]"
item that will prevent that from happening and tell the user to select a
display.
@WizardCM WizardCM added Enhancement Improvement to existing functionality Windows Affects Windows labels Sep 2, 2024
@Lain-B Lain-B merged commit a1db1e8 into master Sep 3, 2024
@Lain-B Lain-B deleted the seal-win-capture-curse branch September 3, 2024 20:28
@RytoEX RytoEX added this to the OBS Studio 31 milestone Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Improvement to existing functionality Windows Affects Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants