question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mouse drag without modifier makes click not work

See original GitHub issue

The issue:

  • Qtile version: 0.21.1.dev75+g6620786f

in my config.py I am trying to make mouse drag a floating window to change its position without modifiers.

mouse = [
    Drag([],
         "Button1",
         lazy.window.set_position_floating(),
         start=lazy.window.get_position()),
    Drag([mod],
         "Button3",
         lazy.window.set_size_floating(),
         start=lazy.window.get_size()),
]

tho when I drag a floating window, it does move it properly. However, any clicking on a floating window will not work, ex: click tabs in chrome.

not sure if the detection of drag or click have some issue or if I can define what is a drag? say long press button1 more than 2 seconds and move (change x, y) as a drag? ex: change some logic in process_button_motion or process_button_click?

Required:

  • I have searched past issues to see if this bug has already been reported.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
changsijaycommented, Jul 31, 2022

i got the logic and config, let me close it , thanks

1reaction
elParaguayocommented, Jul 16, 2022

It’s going to Drag because it’s checking what’s in your config. It looks for Click and Drag objects and sees if the button matches the pressed button.

There’s no magic to drag other than Click objects take priority over Drag ones.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mouse modifiers: Arrange view middle click not working when drag ...
When Arrange view middle drag is set to "No action", the middle click modifier stops working. I want to disable middle drag, as...
Read more >
Modifier during mouse drag - Keyboard Maestro Forum
How can I have modifier held down until a mouse drag completes. ... Press and Hold Down Modifier action while clicking does indeed...
Read more >
Dragging with mouse modifier is not as smooth as native ...
See here The first drag is using a click and drag on the window border, while the second is using the mouse modifier....
Read more >
Change mouse settings - Microsoft Support
Open Mouse Properties by clicking the Start button Start button icon · Click the Pointer Options tab, and then do any of the...
Read more >
Mouse events - The Modern JavaScript Tutorial
Every mouse move over an element triggers that event. click: Triggers after mousedown and then mouseup over the same element if the left...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found