diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2019-04-16 17:35:39 -0700 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2019-04-16 17:35:39 -0700 |
| commit | 6d14fba591bda8a2f5a082609301bc95fcff0a55 (patch) | |
| tree | ed8912b35c93d3a2a259215cbbebc74d562369d7 /swaybg | |
| parent | 7c85f659b676bc42f21072d538be97774100703e (diff) | |
Fix the payload type returned by IPC
If a client is subscribed and sends a subsequent ipc command which
causes event updates, then those event updates override the
`client->current_command` and send the incorrect type for the payload
associated with the command.
Example:
SUBSCRIBE {window}
RUN_COMMAND focus -> PAYLOAD_TYPE is 0x80000002 for window events
Therefore, we decouple the `client->current_command` by passing it as an
argument to the ipc_send_reply function, avoiding a data race. The same
is done for the `client->payload_length` as a precautionary measure for
the same reason.
Diffstat (limited to 'swaybg')
0 files changed, 0 insertions, 0 deletions
