Proposal to fix QMenu's display Affinity. #13859
Unanswered
brazosbuckaroo
asked this question in
Development Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Howdy all!
While looking at reproducing the following Issues:
#12407
#11678
I found another little unexpected feature. QMenus do not have the correct display affinity:
2026-09-02.19-36-23.mp4
Currently my thought process is to create a class that inherits QMenu. It will then override the showEvent function to get the window handle and properly set the Affinity. So, cmake will include correct file based on platform but the class name and file name will be the same, ideally. This, of course, is mostly for Windows 11, but I did see that there was a TODO to implement that for other platforms.
Really, I am curious to see what ya'lls thoughts are about solving in this manner? I am new to working on other projects and wanted to get ideas. I have a branch to look if ya'll have time. It's in the early stages; however, it proves that this at least fixes the issue. The only downside is that the context menus quickly flash, but I cannot see an easy way around defect.
https://github.com/brazosbuckaroo/dan_obs-studio/tree/fix-context-menu-affinity
Repro:
Expected Behavior:
OBS Studio should not capture any UI
Best,
Daniel
Edit:
Typo
All reactions