aboutsummaryrefslogtreecommitdiffstats
path: root/swaybar/i3bar.c
Commit message (Collapse)AuthorAge
* swaybar: log invalid i3bar jsonLibravatar Ian Fan2018-09-21
|
* swaybar: reset tokener if json is incompleteLibravatar Ian Fan2018-09-21
| | | | | | | | If the tokener parses incomplete json, it sets its error value to json_tokener_continue. This means that extra json should be provided, but the code was providing the entire object again. In the interest of simplicity, the tokener is reset so that buffer_pos always points to the start of the current object.
* swaybar: update buffer_pos when moving object to start of bufferLibravatar Ian Fan2018-09-21
|
* swaybar: add debugging statements for handling i3bar jsonLibravatar Ian Fan2018-09-18
|
* swaybar: rewrite i3bar protocol handlingLibravatar Ian Fan2018-09-18
| | | | | | | | This now correctly handles an incoming json infinite array by shifting most of the heavy listing to the json-c parser, as well as sending multiple statuses at once. It also removes the struct i3bar_protocol_state and moves its members into the status_line struct, allowing the same buffer to be used for both protocols.
* swaybar: send trailing comma with click event jsonLibravatar Ian Fan2018-09-18
|
* bar: remove i3bar_block_free in favour of i3bar_block_unrefLibravatar Ian Fan2018-09-14
|
* i3bar: count references to blocksLibravatar Ian Fan2018-09-12
| | | | | | | | | This prevents blocks from being destroyed before their hotspots are destroyed, in case it is used for a pending click event that fires between the bar receiving a new status, which destroys the block, and the bar rendering the new status, which destroys the hotspot; this problem can be easily produced by scrolling on a block that immediately causes a new status to be sent, with multiple outputs
* swaybar: Fix scroll handling on workspace buttonsLibravatar minus2018-07-19
| | | | | | | | | | As well as ignoring scroll events on status elements when click_events is enabled. Previously, using the scroll wheel on a workspace button would switch to that workspace instead of scrolling through them. Clicks and scrolling on status elements would always be processed by swaybar, too. So in case you were using scrolling as volume control on a status item, swaybar would additionally scroll through your workspaces.
* remove unnecessary parensLibravatar Peter Rice2018-07-17
|
* make hotspot callback take an x11 button idLibravatar Peter Rice2018-07-16
|
* Update for swaywm/wlroots#1126Libravatar emersion2018-07-09
|
* Fix a bunch of swaybar memory leaksLibravatar emersion2018-04-24
|
* Fix memory leak on swaybarLibravatar Bruno Pinto2018-04-20
| | | | | | Code from @NilsBrause Ref #1820
* Fix some more bugsLibravatar Drew DeVault2018-04-09
|
* Fix buffer issues in swaybar status line.Libravatar Ryan Dwyer2018-04-09
|
* Fix #1709Libravatar Drew DeVault2018-04-03
|
* Fix use-after-free with block hotspotsLibravatar Drew DeVault2018-04-02
|
* Send click events for i3bar blocksLibravatar Drew DeVault2018-04-02
|
* Render i3bar blocksLibravatar Drew DeVault2018-04-02
|
* Demarcate i3bar JSON into individual updatesLibravatar Drew DeVault2018-04-02