Ian Fan
a82b8a3c14
Remove readline.c
...
All occurrences of read_line have been replaced by getline.
peek_line has been absorbed into detect_brace.
6 years ago
taiyu
d625d68d4a
prevent ub caused by misaligned stores/loads
6 years ago
Ian Fan
baf4604629
ipc-client: fix memory leaks in get_socketpath
6 years ago
emersion
63b4bf5000
Update for swaywm/wlroots#1126
6 years ago
Dominique Martinet
25af959fe9
Fix gcc string truncation warnings
7 years ago
Drew DeVault
382e8af418
Allow sway IPC clients to fall back to i3 socket
7 years ago
Dominique Martinet
67985e9031
sway: change all sway_log to wlr_log
7 years ago
Drew DeVault
9aed9d9359
UnGNUify the codebase
8 years ago
Drew DeVault
9ad1e6b40f
Handle malloc failure in ipc_recv_response
8 years ago
Drew DeVault
416417a54c
Reorganize includes
8 years ago
Johannes Lundberg
949933c5c3
Fix to make ipc client code FreeBSD compatible.
8 years ago
Eric Engestrom
aece36cd22
common: fix potential buffer overflow
9 years ago
Mikkel Oscar Lyderik
1d010afbf7
Abort when receiving 0 bytes in IPC call
...
When sway crashes a swaybar process is sometimes left behind running at
100% CPU. This was caused by the swaybar trying to retrieve an IPC
response from the closed sway socket.
This patch fixes the problem by aborting when the socket has been closed
(recv return 0).
Fix #528
9 years ago
Mikkel Oscar Lyderik
7298a9c67a
Add type to returned response.
...
Makes `ipc_recv_response` return a struct with size, type and payload
rather than just the payload string.
This is useful if the type has to be checked on the client.
9 years ago
Drew DeVault
e277d4e094
Subscribe to workspace change events and redraw
9 years ago
Drew DeVault
8b1de6df30
Fix incorrect #include on ipc-client.c
9 years ago
Drew DeVault
062c74b7d0
Add command line to swaygrab
...
Also modifies IPC client so that we can work with persistent
connections.
9 years ago
Drew DeVault
27f03c705d
Move IPC client into common, refactor IPC
9 years ago