summaryrefslogtreecommitdiffstats
path: root/sway/ipc-server.c
diff options
context:
space:
mode:
authorLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-05 18:22:25 +0100
committerLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-05 18:36:26 +0100
commita8402035e910efc0ee702bb75a1ea5bfed1287bb (patch)
tree3eebda1cf9f2088e8765ff758fac2ecd641d0f8f /sway/ipc-server.c
parentMove modifier name table to common/util.c (diff)
downloadsway-a8402035e910efc0ee702bb75a1ea5bfed1287bb.tar.gz
sway-a8402035e910efc0ee702bb75a1ea5bfed1287bb.tar.zst
sway-a8402035e910efc0ee702bb75a1ea5bfed1287bb.zip
Add modifier key to bar_config json
Diffstat (limited to 'sway/ipc-server.c')
-rw-r--r--sway/ipc-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/ipc-server.c b/sway/ipc-server.c
index a6598b84..f3a4647b 100644
--- a/sway/ipc-server.c
+++ b/sway/ipc-server.c
@@ -511,7 +511,7 @@ json_object *ipc_json_describe_bar_config(struct bar_config *bar) {
511 json_object_object_add(json, "tray_output", NULL); 511 json_object_object_add(json, "tray_output", NULL);
512 json_object_object_add(json, "mode", json_object_new_string(bar->mode)); 512 json_object_object_add(json, "mode", json_object_new_string(bar->mode));
513 json_object_object_add(json, "hidden_state", json_object_new_string(bar->hidden_state)); 513 json_object_object_add(json, "hidden_state", json_object_new_string(bar->hidden_state));
514 //json_object_object_add(json, "modifier", json_object_new_string(bar->modifier)); // TODO: Fix modifier 514 json_object_object_add(json, "modifier", json_object_new_string(get_modifier_name_by_mask(bar->modifier)));
515 switch (bar->position) { 515 switch (bar->position) {
516 case DESKTOP_SHELL_PANEL_POSITION_TOP: 516 case DESKTOP_SHELL_PANEL_POSITION_TOP:
517 json_object_object_add(json, "position", json_object_new_string("top")); 517 json_object_object_add(json, "position", json_object_new_string("top"));