aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-08-01 02:37:48 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-08-01 02:37:48 +0200
commit4b592ec2959fb07eba0b9041f1cb19b81a9ef56a (patch)
tree6938d864aa76744d5f9281c4944f47e8aafecd13
parent58eb7edfd586f397024561fbf7acf6140d9e01e9 (diff)
downloadnncmpp-4b592ec2959fb07eba0b9041f1cb19b81a9ef56a.tar.gz
nncmpp-4b592ec2959fb07eba0b9041f1cb19b81a9ef56a.tar.xz
nncmpp-4b592ec2959fb07eba0b9041f1cb19b81a9ef56a.zip
Fix build in bare configurations
-rw-r--r--nncmpp.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/nncmpp.c b/nncmpp.c
index 97a0031..27b3210 100644
--- a/nncmpp.c
+++ b/nncmpp.c
@@ -2860,8 +2860,11 @@ app_process_mouse (termo_mouse_event_t type, int x, int y, int button,
case WIDGET_LIST:
return app_process_action (ACTION_SCROLL_UP);
case WIDGET_VOLUME:
- return app_process_action (g.pulse_control_requested
- ? ACTION_PULSE_VOLUME_UP : ACTION_MPD_VOLUME_UP);
+ return app_process_action (
+#ifdef WITH_PULSE
+ g.pulse_control_requested ? ACTION_PULSE_VOLUME_UP :
+#endif // WITH_PULSE
+ ACTION_MPD_VOLUME_UP);
case WIDGET_GAUGE:
return app_process_action (ACTION_MPD_FORWARD);
}
@@ -2872,8 +2875,11 @@ app_process_mouse (termo_mouse_event_t type, int x, int y, int button,
case WIDGET_LIST:
return app_process_action (ACTION_SCROLL_DOWN);
case WIDGET_VOLUME:
- return app_process_action (g.pulse_control_requested
- ? ACTION_PULSE_VOLUME_DOWN : ACTION_MPD_VOLUME_DOWN);
+ return app_process_action (
+#ifdef WITH_PULSE
+ g.pulse_control_requested ? ACTION_PULSE_VOLUME_DOWN :
+#endif // WITH_PULSE
+ ACTION_MPD_VOLUME_DOWN);
case WIDGET_GAUGE:
return app_process_action (ACTION_MPD_BACKWARD);
}