fix: lint

This commit is contained in:
Alex
2026-02-24 00:00:57 +01:00
parent aacf0cbc99
commit e18939210b
4 changed files with 6 additions and 6 deletions

View File

@@ -45,7 +45,7 @@ void Workspaces::init() {
initializeWorkspaces();
if (barScroll()) {
auto &window = const_cast<Bar &>(m_bar).window;
auto& window = const_cast<Bar&>(m_bar).window;
window.add_events(Gdk::SCROLL_MASK | Gdk::SMOOTH_SCROLL_MASK);
window.signal_scroll_event().connect(sigc::mem_fun(*this, &Workspaces::handleScroll));
}
@@ -1159,9 +1159,9 @@ std::optional<int> Workspaces::parseWorkspaceId(std::string const& workspaceIdSt
}
}
bool Workspaces::handleScroll(GdkEventScroll *e) {
bool Workspaces::handleScroll(GdkEventScroll* e) {
// Ignore emulated scroll events on window
if (gdk_event_get_pointer_emulated((GdkEvent *)e)) {
if (gdk_event_get_pointer_emulated((GdkEvent*)e)) {
return false;
}
auto dir = AModule::getScrollDir(e);