mouse drag without modifier makes click not work
See original GitHub issueThe 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:
- Created a year ago
- Comments:10 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
i got the logic and config, let me close it , thanks
It’s going to
Drag
because it’s checking what’s in your config. It looks forClick
andDrag
objects and sees if the button matches the pressed button.There’s no magic to drag other than
Click
objects take priority overDrag
ones.