Recent

Author Topic: QT6 / KDE 6: Can MouseWheel Click be globally disabled?  (Read 519 times)

dsiders

  • Hero Member
  • *****
  • Posts: 1403
QT6 / KDE 6: Can MouseWheel Click be globally disabled?
« on: March 10, 2025, 09:48:57 pm »
It appears that the option to enable / disable  Paste (Ctrl+V) using the middle mouse button has been removed in KDE6. My searches have not found an alternative to globally change the feature... probably because Wayland has mandated that it is a default behavior. I'm using X11 though.

Does anyone have any suggestions?
Preview the next Lazarus documentation release at: https://dsiders.gitlab.io/lazdocsnext

dbannon

  • Hero Member
  • *****
  • Posts: 3348
    • tomboy-ng, a rewrite of the classic Tomboy
Re: QT6 / KDE 6: Can MouseWheel Click be globally disabled?
« Reply #1 on: March 11, 2025, 01:32:21 am »
Don, are you trying to turn it ON or OFF ?  (if the latter, I'd hate to use your app).

Its ON by default but you probably have to implement the action it takes. I detect a mouse middle button click, check whats in *.PrimarySelection and copy it to the control if appropriate.

Its not really the same as CTRL-V, it cannot, for example overwrite existing text.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

dsiders

  • Hero Member
  • *****
  • Posts: 1403
Re: QT6 / KDE 6: Can MouseWheel Click be globally disabled?
« Reply #2 on: March 11, 2025, 02:24:32 am »
Don, are you trying to turn it ON or OFF ?  (if the latter, I'd hate to use your app).

Its ON by default but you probably have to implement the action it takes. I detect a mouse middle button click, check whats in *.PrimarySelection and copy it to the control if appropriate.

Its not really the same as CTRL-V, it cannot, for example overwrite existing text.

The middle button is also the scroll wheel on most mice. Every time I touch the scroll wheel it is so sensitive that it inserts whatever is currently selected. This not about my app (unless you consider the Lazarus IDE to be my app).

So, I'm going to assume that a lack of a global option means that I have to turn it off using Tools > Options > Editor > Mouse.  That'll will save me the grief in Lazarus... but does nothing to alleviate the aggravation  in other apps.
Preview the next Lazarus documentation release at: https://dsiders.gitlab.io/lazdocsnext

dbannon

  • Hero Member
  • *****
  • Posts: 3348
    • tomboy-ng, a rewrite of the classic Tomboy
Re: QT6 / KDE 6: Can MouseWheel Click be globally disabled?
« Reply #3 on: March 11, 2025, 03:26:56 am »
Interesting.  I do most of my work on a laptop with a touch pad, have little problem separating the two functions.  But when I use our desktop, yes, sometimes I see that issue, generally I can move the scroll without pressing it down enough to trigger a middle button press, but occasionally.....

That suggests its a physical function of the mouse ?   It 'should' be able to just scroll and need a more solid press to be a click. I think.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Multiss

  • Newbie
  • Posts: 1
Re: QT6 / KDE 6: Can MouseWheel Click be globally disabled?
« Reply #4 on: March 12, 2025, 01:38:50 pm »
But if you're on X11, you might still be able to tweak it with xorg.conf or use something like imwheel to work around it. Bit of a hack, but could do the trick.

dsiders

  • Hero Member
  • *****
  • Posts: 1403
Re: QT6 / KDE 6: Can MouseWheel Click be globally disabled?
« Reply #5 on: March 12, 2025, 04:00:59 pm »
But if you're on X11, you might still be able to tweak it with xorg.conf or use something like imwheel to work around it. Bit of a hack, but could do the trick.

Thanks for the suggestions. I'll have to tinker with those when I get time.
Preview the next Lazarus documentation release at: https://dsiders.gitlab.io/lazdocsnext

 

TinyPortal © 2005-2018