You are not logged in.

#1 2023-03-11 13:47:41

Paragoumba
Member
Registered: 2019-03-28
Posts: 12

[SOLVED] Middle-click and drag doesn't work anymore on xorg

Hello,
Since a few days clicking and dragging with the mouse wheel doesn't do anything. It is annoying when using software like Blender, Godot or Unity where dragging let's move or rotate the camera. I checked with multiple mouses, neither is working and the problem disappears on Wayland.

I am using KDE plasma, I didn't take time to try with Gnome or another DE.

I will report to upstream when I find which software is the culprit.

Does anybody has the same problem? Even a fix?

Thank you

Last edited by Paragoumba (2023-03-11 14:45:18)

Offline

#2 2023-03-11 14:05:06

seth
Member
Registered: 2012-09-03
Posts: 51,253

Re: [SOLVED] Middle-click and drag doesn't work anymore on xorg

xev -event mouse

Click the button inside and post the output.

Offline

#3 2023-03-11 14:12:28

Paragoumba
Member
Registered: 2019-03-28
Posts: 12

Re: [SOLVED] Middle-click and drag doesn't work anymore on xorg

Here is the log. I clicked then clicked and dragged.

Offline

#4 2023-03-11 14:22:58

seth
Member
Registered: 2012-09-03
Posts: 51,253

Re: [SOLVED] Middle-click and drag doesn't work anymore on xorg

MotionNotify event, serial 25, synthetic NO, window 0x7e00001,
    root 0x289, subw 0x7e00002, time 20765119, (35,27), root:(3466,851),
    state 0x10, is_hint 0, same_screen YES

LeaveNotify event, serial 25, synthetic NO, window 0x7e00001,
    root 0x289, subw 0x7e00002, time 20765998, (35,27), root:(3466,851),
    mode NotifyGrab, detail NotifyVirtual, same_screen YES,
    focus YES, state 528

EnterNotify event, serial 25, synthetic NO, window 0x7e00001,
    root 0x289, subw 0x7e00002, time 20766128, (34,27), root:(3465,851),
    mode NotifyUngrab, detail NotifyVirtual, same_screen YES,
    focus YES, state 16

ButtonPress event, serial 25, synthetic NO, window 0x7e00001,
    root 0x289, subw 0x7e00002, time 20766129, (34,27), root:(3465,851),
    state 0x10, button 2, same_screen YES

EnterNotify event, serial 25, synthetic NO, window 0x7e00001,
    root 0x289, subw 0x0, time 20766129, (34,27), root:(3465,851),
    mode NotifyGrab, detail NotifyInferior, same_screen YES,
    focus YES, state 528

ButtonRelease event, serial 25, synthetic NO, window 0x7e00001,
    root 0x289, subw 0x7e00002, time 20766130, (34,27), root:(3465,851),
    state 0x210, button 2, same_screen YES

LeaveNotify event, serial 25, synthetic NO, window 0x7e00001,
    root 0x289, subw 0x0, time 20766130, (34,27), root:(3465,851),
    mode NotifyUngrab, detail NotifyInferior, same_screen YES,
    focus YES, state 16

MotionNotify event, serial 25, synthetic NO, window 0x7e00001,
    root 0x289, subw 0x7e00002, time 20766131, (33,27), root:(3464,851),
    state 0x10, is_hint 0, same_screen YES

MotionNotify event, serial 25, synthetic NO, window 0x7e00001,
    root 0x289, subw 0x7e00002, time 20766135, (33,28), root:(3464,852),
    state 0x10, is_hint 0, same_screen YES

MotionNotify event, serial 25, synthetic NO, window 0x7e00001,
    root 0x289, subw 0x7e00002, time 20766139, (32,28), root:(3463,852),
    state 0x10, is_hint 0, same_screen YES

LeaveNotify event, serial 25, synthetic NO, window 0x7e00001,
    root 0x289, subw 0x7e00002, time 20766761, (32,28), root:(3463,852),
    mode NotifyGrab, detail NotifyVirtual, same_screen YES,
    focus YES, state 528

EnterNotify event, serial 25, synthetic NO, window 0x7e00001,
    root 0x289, subw 0x7e00002, time 20767104, (50,27), root:(3481,851),
    mode NotifyUngrab, detail NotifyVirtual, same_screen YES,
    focus YES, state 16

The extra leave/enter is likely down to kwin replaying the event, otherwise looks unsuspicious.
The middle mouse button is likely bound to some action in kwin? (tab drag, stuff like that) - can you try the behavior w/o any MMB action configured for kwin?
Does the MMB work as expected w/ Qt/KDE scrollbars (slider jumps to that position and then you can drag it)?

Offline

#5 2023-03-11 14:38:15

Paragoumba
Member
Registered: 2019-03-28
Posts: 12

Re: [SOLVED] Middle-click and drag doesn't work anymore on xorg

Ok I found it.

Dragging scrollbars doesn't work either. (And I just learned you can click on the scrollbar to move it instantly, and even right-click to have a contextual menu with some more options).

This "bug" (not a bug in fact) was due to the gestures services I had activated in the settings under Shortcuts > Custom shortcuts.
I disabled it and everything works again.

Thanks for your help,
I will try to remember to not enable hidden settings and forget about it

Offline

Board footer

Powered by FluxBB