aboutsummaryrefslogtreecommitdiff
path: root/sway/ipc-server.c
AgeCommit message (Collapse)Author
2016-08-04ipc: recursive workspace containers in eventTony Crisci
Recursively describe workspace containers in the workspace event. This is for compatability with i3 and i3ipc libraries.
2016-07-28Initialize client's subscribed eventsMykyta Holubakha
2016-07-21Unite describe_view and describe_windowMykyta Holubakha
2016-07-21Fix dispatching and assigning eventsMykyta Holubakha
2016-07-21More progress on window eventsMykyta Holubakha
2016-07-21Initial work on window eventsMykyta Holubakha
2016-07-04implement `get_tree` commandZandr Martin
2016-05-31fix swaybar problem in 08bef67Zandr Martin
2016-05-31sway: refactor ipc_client_handle_command()Eric Engestrom
This fixes a few mem leaks, as well as remove a false-positive error msg in IPC_GET_BAR_CONFIG
2016-05-31sway: fix IPC resource leakEric Engestrom
2016-05-02sway: always terminate ipc pathEric Engestrom
2016-04-24Renamed to pango_markupMykyta Holubakha
2016-04-24Added plaintext_markup to swaybar IPCMykyta Holubakha
2016-04-17Use correct format string for x86_64 and i686Mikkel Oscar Lyderik
Fix #587
2016-02-27Add outputs to bar_config ipc responseMikkel Oscar Lyderik
2016-02-08Replace deprecated function wlc_output_get_pixels.Mikkel Oscar Lyderik
This makes IPC GET_PIXELS use the new `wlc_pixels_read` call instead of the deprecated `wlc_output_get_pixels`. The old version worked by passing a callback function to wlc which would grab the pixels and send them to the IPC client. The new version works by maintaining a list of clients who have requested the pixels of some output and then grap and send the pixels in the output_post_render hook of the `wlc_interface`.
2016-01-27font: Allow adding font to the config. In prep for border titlescrondog
v2: Give default font and make bar use it if no bar font
2016-01-19libinputCole Mickens
2016-01-09Add backwards compatability for binding eventMikkel Oscar Lyderik
2016-01-09Add bindcode to binding events.Mikkel Oscar Lyderik
2016-01-08Make IPC binding event support a compile time opt.Mikkel Oscar Lyderik
2016-01-08Implement IPC binding event (keyboard)Mikkel Oscar Lyderik
This implements the IPC binding event for keyboard bindings. It is slightly different from the i3 implementation [1] since sway supports more than one non-modifier key in a binding. Thus the json interface has been changed from: { ... "symbol": "t", ... } to: { ... "symbols": [ "t" ], ... } [1] http://i3wm.org/docs/ipc.html#_binding_event
2016-01-05Add modifier key to bar_config jsonMikkel Oscar Lyderik
2016-01-05Move modifier name table to common/util.cMikkel Oscar Lyderik
Lookup of modifier names is required in several places, thus it makes sense to move it to a general place.
2016-01-05Send IPC modifier event on bar_modifier up/downMikkel Oscar Lyderik
Detects when a bar modifier key is pressed/released and sends a modifier IPC event to any listeners (usually swaybars). This way a swaybar can listen on the modifier event and hide/show the bar accordingly (not implemented yet) The modifier event looks like this: { "change": "pressed", // or released "modifier": "Mod4" }
2016-01-03swaybar: Implement binding_mode_indicatorMikkel Oscar Lyderik
2016-01-03Add IPC event typesMikkel Oscar Lyderik
Adds custom IPC_EVENT_* types
2015-12-21Trigger ipc_event_workspace in all casesMikkel Oscar Lyderik
This makes sure that the workspace IPC event is triggered when needed. Fixes #382 while making sure that the IPC event is only triggered once.
2015-12-21Merge pull request #390 from mikkeloscar/workspace-ipc-eventDrew DeVault
Don't skip all clients on ipc_workspace_event.
2015-12-21Don't skip all clients on ipc_workspace_event.Mikkel Oscar Lyderik
Only clients not subcriped to the workspace event should be skipped.
2015-12-21Implement `barconfig_update` IPC eventMikkel Oscar Lyderik
2015-12-16Implement bar option: separator_symbolMikkel Oscar Lyderik
2015-12-15[swaybar] Get bar config via IPCDrew DeVault
2015-12-15Merge pull request #328 from mikkeloscar/bar-heightDrew DeVault
Add bar height option (Airblader/i3)
2015-12-15Add bar height option (Airblader/i3)Mikkel Oscar Lyderik
2015-12-15Fix crash from ipc_json_describe_workspaceDrew DeVault
destroying workspace '10' Error: Signal 11. Printing backtrace Backtrace: sway(error_handler+0x2f) [0x41478f] Backtrace: /usr/lib/libc.so.6(+0x33680) [0x7f06d9a99680] Backtrace: /usr/lib/libc.so.6(strlen+0x2a) [0x7f06d9ae70ca] Backtrace: /usr/lib/libc.so.6(__strdup+0xe) [0x7f06d9ae6dfe] Backtrace: /usr/lib/libjson-c.so.2(json_object_new_string+0x39) [0x7f06da01ffe9] Backtrace: sway(ipc_json_describe_workspace+0xd8) [0x410408] Backtrace: sway(ipc_event_workspace+0x38) [0x410618] Backtrace: sway(set_focused_container+0x190) [0x40daf0] Backtrace: sway(workspace_switch+0x1a1) [0x4142b1] Backtrace: sway() [0x4096c6] Backtrace: sway(handle_command+0x178) [0x405eb8] Backtrace: sway() [0x40e6ee] Backtrace: /usr/lib/libwlc.so.0(+0x19a1b) [0x7f06da6f0a1b] Backtrace: /usr/lib/libwlc.so.0(+0x11b0c) [0x7f06da6e8b0c] Backtrace: /usr/lib/libwayland-server.so.0(wl_event_loop_dispatch+0x72) [0x7f06d9e13242] Backtrace: /usr/lib/libwayland-server.so.0(wl_display_run+0x25) [0x7f06d9e119a5] Backtrace: /usr/lib/libwlc.so.0(wlc_run+0xfc) [0x7f06da6fda1c] Backtrace: sway(main+0x25f) [0x4125cf] Backtrace: /usr/lib/libc.so.6(__libc_start_main+0xf0) [0x7f06d9a86610] Backtrace: sway(_start+0x29) [0x405bf9]
2015-12-15Implement IPC_GET_BAR_CONFIGDrew DeVault
2015-12-14Fix dangling pointer on focus swap/describe WSKevin Hamacher
2015-11-27Move IPC client into common, refactor IPCDrew DeVault