obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
60.26k stars 7.98k forks source link

Dropdown menus are broken when OBS is displayed on a secondary moitor #10525

Open WillHarding49 opened 7 months ago

WillHarding49 commented 7 months ago

Operating System Info

Windows 11

Other OS

No response

OBS Studio Version

30.1.2

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/eX1WqD7ps1Hd2sVd

OBS Studio Crash Log URL

No response

Expected Behavior

Dropdown menus appear on a secondary monitor when clicking an option in the menu bar, when right-clicking, or when clicking the audio source properties 3 dot button.

Current Behavior

Menu bar options do not work consistently, sometimes requiring several clicks to work at all. Right-clicking and 3 dot menu buttons will not show a context menu at all on a secondary monitor. This works fine in the primary monitor.

Steps to Reproduce

  1. Open OBS on a dual-screen setup
  2. Move OBS from the primary screen to the secondary
  3. Right-click on the screen, observe no context menu is shown ...

Anything else we should know?

This bug does not appear in OBS version 29.1.3. This bug can be found in this forum post as well: https://obsproject.com/forum/threads/obs-menus-broken-when-on-secondary-monitors.174341/

The GIF linked here (sorry, too big to post here) shows this bug in action, first with version 30.1.2 on my primary monitor (left) and then on my secondary monitor (right). I then show this same series of actions on version 29.1.3 where there is no issue.

RytoEX commented 7 months ago

I converted the GIF to an MP4.

https://github.com/obsproject/obs-studio/assets/624931/babb979e-3572-415a-b74f-bbd792a02beb

I cannot reproduce this with a secondary display when both displays are at 100% scaling.

WillHarding49 commented 7 months ago

I have two different sizes and resolution monitors so my scaling is different on both. The left one is 2560x1440 at 175% scale and the right one is 1920x1080 at 100% scale. Setting the left monitor to be 100%, 125%, 150%, or 200% does not cause the issue to happen, only when on 175% or 225% scale. I would not consider changing the screen scale a fix as 175% is my preferred resolution for my main monitor and changing it would cause the screen to either be too large or too small to comfortably use.

RytoEX commented 7 months ago

I would not consider changing the screen scale a fix as 175%

I wasn't suggesting this. I was merely documenting what does not reproduce the issue to illustrate that this is likely one of many myriad Qt-related issues that revolve around multi-display setups with mixed resolution/scaling so that it's easier for us to debug/triage later.

ruairidh74 commented 5 months ago

Not sure if this is a separate issue, I have a similar secondary monitor problem with reordering Scenes and Sources on my 1440p monitors. I'm not seeing any issue with the 3-dot dropdowns but I am having issue with the Source property dropdown.

I have one 1080p set to 100% scaling, and three 1440p monitors set to 125% scaling. OBS, and any property Window, will always open on my 1080p monitor even though it's not my Primary monitor, and after closing OBS on any other monitor.

Everything works as expected on my 1080p monitor, but after moving OBS to any 1440p monitors, reordering Scenes and Sources will be out of line (shown in attached video).

https://github.com/obsproject/obs-studio/assets/29524403/b762c02f-86e2-4d78-8d39-df9bd2d78b9b