From c2a307ef78f3765e9daaa59a39924ec831f61483 Mon Sep 17 00:00:00 2001 From: chiaccona Date: Wed, 24 Jan 2024 10:41:53 -0500 Subject: [PATCH] Minor code cosmetics --- src/Widgets.cc | 2 +- src/Widgets.h | 1 + src/dx7.h | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Widgets.cc b/src/Widgets.cc index cb9f446..25297a5 100644 --- a/src/Widgets.cc +++ b/src/Widgets.cc @@ -610,7 +610,7 @@ bool FileMgr::event(XEvent e) { break; } - case ButtonPressMask: + case ButtonPress: switch(e.xbutton.button) { case 1: click(e.xbutton.x, e.xbutton.y); break; case 4: scrollUp(); break; diff --git a/src/Widgets.h b/src/Widgets.h index 8acfb41..5966ef6 100644 --- a/src/Widgets.h +++ b/src/Widgets.h @@ -16,6 +16,7 @@ * along with this program. If not, see . **/ +#pragma once #include #include diff --git a/src/dx7.h b/src/dx7.h index 5443aee..94e9cae 100644 --- a/src/dx7.h +++ b/src/dx7.h @@ -16,6 +16,8 @@ * along with this program. If not, see . **/ +#pragma once + #include #include #include