Skip to content

Conversation

Zaphoood
Copy link
Contributor

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Other: Replace this with a description of the type of this PR

Description

When a module is clicked, only wait for the double click interval if a double click action is associated with that module. Otherwise trigger the click right away.
The check is button specific, so if the user performs a right click on an area that has an action for a double left click, the right click is triggered immediately.

Related Issues & Documents

Fixes: #2663

Documentation (check all applicable)

  • This PR requires changes to the Wiki documentation (describe the changes)
  • This PR requires changes to the documentation inside the git repo (please add them to the PR).
  • Does not require documentation changes

@codecov
Copy link

codecov bot commented Apr 22, 2022

Codecov Report

Merging #2695 (8352c7e) into master (4961a7d) will increase coverage by 0.00%.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##           master    #2695   +/-   ##
=======================================
  Coverage   13.58%   13.58%           
=======================================
  Files         152      152           
  Lines       11339    11336    -3     
=======================================
  Hits         1540     1540           
+ Misses       9799     9796    -3     
Flag Coverage Δ
unittests 13.58% <0.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/components/bar.cpp 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4961a7d...8352c7e. Read the comment docs.

Copy link
Member

@patrick96 patrick96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! Thanks for your help 😃

Please also add this bugfix to the changelog.

When a module is clicked, only wait for the double click interval if a
double click action is associated with that module. Otherwise trigger
the click right away.

Fixes: polybar#2663
Copy link
Member

@patrick96 patrick96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@patrick96 patrick96 merged commit b529279 into polybar:master Apr 25, 2022
@Zaphoood Zaphoood deleted the fix-2663 branch April 25, 2022 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: All modules wait for possible double-click events once one module has a double click event set
2 participants