mirror of
https://github.com/swaywm/sway.git
synced 2025-11-13 13:29:49 -05:00
Add bar configuration commands
This commit is contained in:
parent
6836074fed
commit
bf7a4cd0eb
31 changed files with 1051 additions and 50 deletions
|
|
@ -313,10 +313,18 @@ void ipc_event_window(swayc_t *window, const char *change) {
|
|||
|
||||
const char *json_string = json_object_to_json_string(obj);
|
||||
ipc_send_event(json_string, IPC_EVENT_WINDOW);
|
||||
|
||||
json_object_put(obj); // free
|
||||
}
|
||||
|
||||
void ipc_event_barconfig_update(struct bar_config *bar) {
|
||||
wlr_log(L_DEBUG, "Sending barconfig_update event");
|
||||
json_object *json = ipc_json_describe_bar_config(bar);
|
||||
|
||||
const char *json_string = json_object_to_json_string(json);
|
||||
ipc_send_event(json_string, IPC_EVENT_BARCONFIG_UPDATE);
|
||||
json_object_put(json); // free
|
||||
}
|
||||
|
||||
int ipc_client_handle_writable(int client_fd, uint32_t mask, void *data) {
|
||||
struct ipc_client *client = data;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue