summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Christoph Gysin <christoph.gysin@gmail.com>2015-11-29 15:23:27 +0200
committerLibravatar Christoph Gysin <christoph.gysin@gmail.com>2015-11-29 15:32:02 +0200
commit7059eccaa12e7f74d8dfd4744a05ec7d438c9f08 (patch)
treed0137b2fc4b8d002fee18d739b9345445eea2195
parentapply_output_config: use list_seq_find() to find config (diff)
downloadsway-7059eccaa12e7f74d8dfd4744a05ec7d438c9f08.tar.gz
sway-7059eccaa12e7f74d8dfd4744a05ec7d438c9f08.tar.zst
sway-7059eccaa12e7f74d8dfd4744a05ec7d438c9f08.zip
cmd_output: Log enable/disable state
-rw-r--r--sway/commands.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 4eaa210f..e00cc94d 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -813,9 +813,10 @@ static struct cmd_results *cmd_output(int argc, char **argv) {
813 } 813 }
814 list_add(config->output_configs, output); 814 list_add(config->output_configs, output);
815 815
816 sway_log(L_DEBUG, "Config stored for output %s (%d x %d @ %d, %d) (bg %s %s)", 816 sway_log(L_DEBUG, "Config stored for output %s (%s) (%d x %d @ %d, %d) (bg %s %s)",
817 output->name, output->width, output->height, output->x, output->y, 817 output->name, output->enabled ? "enable" : "disable", output->width,
818 output->background, output->background_option); 818 output->height, output->x, output->y, output->background,
819 output->background_option);
819 820
820 if (output->name) { 821 if (output->name) {
821 // Try to find the output container and apply configuration now. If 822 // Try to find the output container and apply configuration now. If