mirror of
https://github.com/swaywm/sway.git
synced 2026-04-29 06:46:22 -04:00
Fix #892
Removed additional event socket to reduce synchronisation problems and limited workspace update requests count.
This commit is contained in:
parent
f8d0e1f946
commit
8dec814bb4
5 changed files with 49 additions and 19 deletions
|
|
@ -23,6 +23,10 @@ char *get_socketpath(void);
|
|||
* Opens the sway socket.
|
||||
*/
|
||||
int ipc_open_socket(const char *socket_path);
|
||||
/**
|
||||
* Issues a single IPC command without reading response.
|
||||
*/
|
||||
void ipc_single_command_no_response(int socketfd, uint32_t type, const char *payload, uint32_t *len);
|
||||
/**
|
||||
* Issues a single IPC command and returns the buffer. len will be updated with
|
||||
* the length of the buffer returned from sway.
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@ struct bar {
|
|||
int ipc_socketfd;
|
||||
int status_read_fd;
|
||||
pid_t status_command_pid;
|
||||
|
||||
int pending_ipc_requests;
|
||||
};
|
||||
|
||||
struct output {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue