diff --git a/src/screen_artist.c b/src/screen_artist.c
index 2190cbbff54a7f3b4aed0068a47f9cb7d4c52df0..672c93f33c366f0b35f206d86e369911bf07dd19 100644 (file)
--- a/src/screen_artist.c
+++ b/src/screen_artist.c
return false;
}
+#ifdef HAVE_GETMOUSE
+static bool
+screen_artist_mouse(struct mpdclient *c, int x, int y, mmask_t bstate)
+{
+ if (browser_mouse(&browser, c, x, y, bstate)) {
+ if (screen_is_visible(&screen_artist))
+ screen_artist_paint();
+
+ return true;
+ }
+
+ return false;
+}
+#endif
+
const struct screen_functions screen_artist = {
.init = screen_artist_init,
.exit = screen_artist_quit,
.paint = screen_artist_paint,
.update = screen_artist_update,
.cmd = screen_artist_cmd,
+#ifdef HAVE_GETMOUSE
+ .mouse = screen_artist_mouse,
+#endif
.get_title = screen_artist_get_title,
};