fix(bar): Remove double click
This commit is contained in:
parent
418dadf0b9
commit
1cccd100bb
3 changed files with 7 additions and 18 deletions
|
@ -68,7 +68,6 @@ class bar : public xpp::event::sink<evt::button_press, evt::expose, evt::propert
|
|||
std::mutex m_mutex{};
|
||||
|
||||
event_timer m_buttonpress{0L, 5L};
|
||||
event_timer m_doubleclick{0L, 250L};
|
||||
};
|
||||
|
||||
POLYBAR_NS_END
|
||||
|
|
|
@ -33,7 +33,7 @@ enum class syntaxtag : uint8_t {
|
|||
u, // underline color
|
||||
};
|
||||
|
||||
enum class mousebtn : uint8_t { NONE = 0U, LEFT, MIDDLE, RIGHT, SCROLL_UP, SCROLL_DOWN, DOUBLE_CLICK };
|
||||
enum class mousebtn : uint8_t { NONE = 0U, LEFT, MIDDLE, RIGHT, SCROLL_UP, SCROLL_DOWN };
|
||||
|
||||
enum class strut : uint16_t {
|
||||
LEFT = 0U,
|
||||
|
@ -96,6 +96,10 @@ struct action_block : public action {
|
|||
uint16_t width() const {
|
||||
return static_cast<uint16_t>(end_x - start_x + 0.5);
|
||||
}
|
||||
|
||||
bool test(int16_t point) const {
|
||||
return static_cast<int16_t>(start_x) < point && static_cast<int16_t>(end_x) >= point;
|
||||
}
|
||||
};
|
||||
|
||||
struct bar_settings {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue