texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.84k stars 346 forks source link

Mouse behavior completely unusable in Qt6 version (4.8.4). #3842

Closed ExecutorElassus closed 1 month ago

ExecutorElassus commented 1 month ago

Environment

Expected behavior

When I use the primary mouse button to click menus, dropdowns, the editor field, etc., it should behave like the primary mouse button

Actual behavior

the primary mouse button doesn't appear to do anything, except that occasionally the context menu appears only while the button is pressed. The cursor does not move to the line number where I click the primary mouse button. Clicking a menu only works with the secondary mouse button (in my case, the right-click). None of the buttons in, for example, the Options window respond to the primary mouse button, only the secondary.

This behavior only happened when I upgraded from 4.8.1 (which uses Qt5) to 4.8.4 (which uses Qt6). This may be a problem with Qt6 itself: when I use qt6ct to set the Qt6 theme, that window also behaves erratically.

I am not using a WM with integrated Qt; I'm using FVWM, so there's no WM-level Qt integration.

How to reproduce

Use a non-integrated WM with Qt6.

ExecutorElassus commented 1 month ago

I should add: I'm using an ELECOM trackball that requires the use of xmodmap to remap the mouse buttons, since (for some reason) ELECOM sets the secondary mouse button as Button 1.

sunderme commented 1 month ago

That sound like a Qt/WM/Gentoo issue. Nothing we can do.

ExecutorElassus commented 1 month ago

Fair enough. Welp, guess it's StackOverflow and the gentoo forum for me! Thanks for the help.