TeXworks / texworks

Main codebase for TeXworks, a simple interface for working with TeX documents
https://tug.org/texworks/
GNU General Public License v2.0
697 stars 127 forks source link

MacOS X: wrong main menu #1005

Open jlaurens opened 1 year ago

jlaurens commented 1 year ago

Bug description: When opening foo.tex with an associated foo.pdf the main menu is the pdf one despite the tex window has focus. We have to switch focus to foo.pdf and back to foo.tex. Then the main menu is correct.

stloeffler commented 1 year ago

Which version (particularly, which version of Qt) are you using? ("About TeXworks" should be able to tell you).

The reason I'm asking: I could reproduce the problem with the macOS 10.12 compatible build, which uses Qt 5.12.12 LTS. With the build for macOS 10.15 and above (using Qt 6.2.4), everything seemed to work as expected. If that is the case, this is probably a Qt bug that has been fixed (but, sadly, will probably not be back-ported).

jlaurens commented 1 year ago

You are right, I am building for arm64 OSX with Qt5. I have assigned this issue to myself in order to modify the build instructions once appropriate libraries are available.