Skip to content

Commit

Permalink
Merge pull request #3500 from khaneliman/group
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexays authored Aug 3, 2024
2 parents 003dd3a + 17f07b2 commit 2131678
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/group.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace waybar {
class Group : public AModule {
public:
Group(const std::string &, const std::string &, const Json::Value &, bool);
virtual ~Group() = default;
~Group() override = default;
auto update() -> void override;
operator Gtk::Widget &() override;

Expand Down
6 changes: 3 additions & 3 deletions src/group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace waybar {

const Gtk::RevealerTransitionType getPreferredTransitionType(bool is_vertical) {
Gtk::RevealerTransitionType getPreferredTransitionType(bool is_vertical) {
/* The transition direction of a drawer is not actually determined by the transition type,
* but rather by the order of 'box' and 'revealer_box':
* 'REVEALER_TRANSITION_TYPE_SLIDE_LEFT' and 'REVEALER_TRANSITION_TYPE_SLIDE_RIGHT'
Expand Down Expand Up @@ -102,7 +102,7 @@ bool Group::handleMouseEnter(GdkEventCrossing* const& e) {
}

bool Group::handleMouseLeave(GdkEventCrossing* const& e) {
if (!click_to_reveal) {
if (!click_to_reveal && e->detail != GDK_NOTIFY_INFERIOR) {
hide_group();
}
return false;
Expand All @@ -112,7 +112,7 @@ bool Group::handleToggle(GdkEventButton* const& e) {
if (!click_to_reveal || e->button != 1) {
return false;
}
if (box.get_state_flags() & Gtk::StateFlags::STATE_FLAG_PRELIGHT) {
if ((box.get_state_flags() & Gtk::StateFlags::STATE_FLAG_PRELIGHT) != 0U) {
hide_group();
} else {
show_group();
Expand Down
2 changes: 1 addition & 1 deletion src/util/css_reload_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ std::string waybar::CssReloadHelper::findPath(const std::string& filename) {

// File monitor does not work with symlinks, so resolve them
std::string original = result;
while(std::filesystem::is_symlink(result)) {
while (std::filesystem::is_symlink(result)) {
result = std::filesystem::read_symlink(result);

// prevent infinite cycle
Expand Down

0 comments on commit 2131678

Please sign in to comment.