added button mask for pausing
This commit is contained in:
parent
451f56d591
commit
569272e96f
5
mpdart.c
5
mpdart.c
|
@ -449,6 +449,9 @@ int main(int argc, char** argv) {
|
|||
break;
|
||||
/* toggle pause on press */
|
||||
case ButtonPress:
|
||||
|
||||
if (ev.xbutton.button == Button1) {
|
||||
|
||||
DEBUG("Toggling pause\n");
|
||||
|
||||
mpd_run_noidle(connection);
|
||||
|
@ -460,6 +463,8 @@ int main(int argc, char** argv) {
|
|||
|
||||
mpd_send_idle_mask(connection, MPD_IDLE_PLAYER);
|
||||
mpd_check_error();
|
||||
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user