aboutsummaryrefslogtreecommitdiffstats
path: root/sway/ipc-server.c
Commit message (Collapse)AuthorAge
...
| * Implement mode --pango_markupLibravatar Brian Ashworth2018-07-05
| |
* | cmd_results_to_json: return copied string and properly free the jsonLibravatar Dominique Martinet2018-07-05
| | | | | | | | | | | | | | The only user of this function would copy the string right away to get rid of the const flag anyway, and freeing a const string afterwards might work but is not meant to be done according to the json-c API.
* | ipc-server: free clients at destroyLibravatar Dominique Martinet2018-07-05
|/
* ipc-server: add display destroy listener and remove ipc_terminateLibravatar Dominique Martinet2018-07-04
| | | | | | | | | | | | | | | | | | | | | | | | | wl_event_source_remove() is illegal after display has been destroyed, so just destroy everything when we still can. ==20392==ERROR: AddressSanitizer: heap-use-after-free on address 0x607000001240 at pc 0x00000048e86e bp 0x7ffe4b557e00 sp 0x7ffe4b557df0 READ of size 8 at 0x607000001240 thread T0 #0 0x48e86d in wl_list_insert ../common/list.c:149 #1 0x7fdf673d4d7d in wl_event_source_remove src/event-loop.c:487 #2 0x41b742 in ipc_terminate ../sway/ipc-server.c:94 #3 0x40b1ad in main ../sway/main.c:440 #4 0x7fdf6664c18a in __libc_start_main ../csu/libc-start.c:308 #5 0x409359 in _start (/opt/wayland/bin/sway+0x409359) 0x607000001240 is located 48 bytes inside of 72-byte region [0x607000001210,0x607000001258) freed by thread T0 here: #0 0x7fdf692c4880 in __interceptor_free (/lib64/libasan.so.5+0xee880) #1 0x7fdf673d371a in wl_display_destroy src/wayland-server.c:1097 previously allocated by thread T0 here: #0 0x7fdf692c4c48 in malloc (/lib64/libasan.so.5+0xeec48) #1 0x7fdf673d4d9e in wl_event_loop_create src/event-loop.c:522 #2 0x40acb2 in main ../sway/main.c:363 #3 0x7fdf6664c18a in __libc_start_main ../csu/libc-start.c:308
* ipc-server: fix more use-after-frees on ipc_send_reply errorLibravatar Dominique Martinet2018-07-02
| | | | | | | Since ipc_send_reply frees the client on error, we need to check the return value properly as we access client later on Found through static analysis.
* ipc-server: minor code cleanupLibravatar Dominique Martinet2018-07-02
| | | | | | | No logic change here, this one is mostly to please static analyzer: - client->fd can never be -1 (and if it could, close() a few lines below would have needed the same check) - we never send permission denied error (dead code)
* ipc-server: fix double-free on send error in ipc_send_eventLibravatar Dominique Martinet2018-07-02
| | | | | | | | | ipc_send_reply already does client disconnect on error, so we shouldn't do it again. We also need to process current index again as disconnect removes client from the list we currently are processing (this is an indexed "list") Found through static analysis.
* Switch output storing from list_t to wl_listLibravatar Brian Ashworth2018-06-06
|
* Store sway_outputs so that they can be reenabledLibravatar Brian Ashworth2018-06-06
|
* Make command block implementation genericLibravatar Brian Ashworth2018-06-02
|
* Implement IPC_GET_MARKSLibravatar Brian Ashworth2018-05-22
|
* Implement IPC get_seats commandLibravatar Ryan Dwyer2018-05-12
|
* Fix gcc string truncation warningsLibravatar Dominique Martinet2018-04-13
|
* address feedbackLibravatar Tony Crisci2018-04-05
|
* dont send ipc events when there are no listenersLibravatar Tony Crisci2018-04-05
|
* rename input-manager functionsLibravatar Tony Crisci2018-04-02
|
* rename seat functionsLibravatar Tony Crisci2018-04-02
|
* Merge pull request #1669 from emersion/workspace-pointer-eventsLibravatar Drew DeVault2018-03-30
|\ | | | | Fix pointer events for hidden workspaces
| * Fix segfaults when focusing a workspaceLibravatar emersion2018-03-30
| |
* | IPC fixesLibravatar Drew DeVault2018-03-30
|/
* Merge remote-tracking branch 'origin/wlroots' into swaybar-layersLibravatar Drew DeVault2018-03-30
|\
| * Revert "Merge pull request #1653 from swaywm/revert-1647-refactor-tree"Libravatar Tony Crisci2018-03-29
| | | | | | | | | | This reverts commit 472e81f35d689d67cda241acafda91c688d61046, reversing changes made to 6b7841b11ff4cd35f54d69dc92029855893e5ce0.
| * Revert "Refactor tree"Libravatar Drew DeVault2018-03-29
| |
| * rename container functionsLibravatar Tony Crisci2018-03-29
| |
* | Move declaration into loopLibravatar Drew DeVault2018-03-29
| |
* | Exit ipc_get_workspace_callback earlyLibravatar Drew DeVault2018-03-29
| |
* | Implement modesLibravatar Drew DeVault2018-03-29
| |
* | Do some small cleanupLibravatar Drew DeVault2018-03-29
| | | | | | | | | | | | | | - Fix workspace events (security config isn't in use so it wasn't being sent) - Kill status bar process when swaybar exits - Don't rearrange windows on every layer surface commit
* | Add bar configuration commandsLibravatar Drew DeVault2018-03-29
| |
* | Implement enough IPC for swaybar to workLibravatar Drew DeVault2018-03-29
|/
* ipc new window eventLibravatar Tony Crisci2018-02-27
|
* take seat param for handle_command and renameLibravatar Tony Crisci2018-02-24
|
* basic focus (without direction)Libravatar Tony Crisci2018-02-14
|
* clear handler context before ipc commandLibravatar Tony Crisci2018-01-21
|
* sway: change all sway_log to wlr_logLibravatar Dominique Martinet2018-01-05
|
* ipc get_inputsLibravatar Tony Crisci2017-12-18
|
* Add IPC get_outputsLibravatar emersion2017-12-18
|
* basic get_treeLibravatar Tony Crisci2017-12-03
|
* Wire up IPC serverLibravatar Drew DeVault2017-11-22
|
* Move everything to sway/old/Libravatar Drew DeVault2017-11-18
|
* Establish sway input submoduleLibravatar Drew DeVault2017-11-11
|
* Fire up the wlroots backend and run the event loopLibravatar Drew DeVault2017-11-11
|
* Fix build on FreeBSD adjusting/removing _XOPEN_SOURCE declaration.Libravatar Johannes Lundberg2017-10-14
|
* Merge pull request #1263 from nyorain/masterLibravatar Drew DeVault2017-10-08
|\ | | | | Implement get_clipboard ipc message
| * Add get_clipbard ipc errors; Adapt swaymsgLibravatar nyorain2017-07-11
| | | | | | | | Also increase the get_clipboard timeout to 30 secs
| * Close fd in clipboard requestLibravatar nyorain2017-07-11
| |
| * Add timeout; Fix receive loop & style issuesLibravatar nyorain2017-07-11
| |
| * Signal base64 in clipboard type; Reimplement loopLibravatar nyorain2017-07-07
| |
| * Handle x11 text atoms in get_clipboard ipcLibravatar nyorain2017-07-07
| |
| * Rework get_clipboard implementationLibravatar nyorain2017-07-07
| |