mirror of
https://github.com/polybar/polybar.git
synced 2026-02-09 13:35:41 +00:00
fix(bar): Remove double click
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user