disobedience/control.c: Force internal event when buttons are frobbed.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 20 May 2021 19:24:30 +0000 (20:24 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 20 May 2021 19:24:30 +0000 (20:24 +0100)
commit55826f7ba4afe59ebd1005ceb1194a8830fb1dd6
treee49406f4fffe5eea88fd65acb099845cab027a32
parentf622e663e7fcfb9ad92651e1a277d325dd939e5c
disobedience/control.c: Force internal event when buttons are frobbed.

This fixes a bug leftover from fe0a1c48c648f683b3691132fb2b12b01d1ace32.

The obvious symptom is that the currently-playing track's progress
indication goes screwy when you use the pause button in the same
DisObedience instance.  (Other DisObediences work correctly, and all of
them work fine if you use some other mechanism to frob the pause
status.)

The bug is caused because the preemptive state update introduced in the
previous fix suppresses the internal event which used to raised once the
server acknowledged the state change.

Fix this by explicitly raising the relevant event.
disobedience/control.c