aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/show_marks.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/show_marks.c')
-rw-r--r--sway/commands/show_marks.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/sway/commands/show_marks.c b/sway/commands/show_marks.c
index 0d373b80..fecb5ade 100644
--- a/sway/commands/show_marks.c
+++ b/sway/commands/show_marks.c
@@ -10,8 +10,8 @@
10#include "stringop.h" 10#include "stringop.h"
11#include "util.h" 11#include "util.h"
12 12
13static void rebuild_marks_iterator(struct sway_container *con, void *data) { 13static void title_bar_update_iterator(struct sway_container *con, void *data) {
14 container_update_marks_textures(con); 14 container_update_marks(con);
15} 15}
16 16
17struct cmd_results *cmd_show_marks(int argc, char **argv) { 17struct cmd_results *cmd_show_marks(int argc, char **argv) {
@@ -23,12 +23,7 @@ struct cmd_results *cmd_show_marks(int argc, char **argv) {
23 config->show_marks = parse_boolean(argv[0], config->show_marks); 23 config->show_marks = parse_boolean(argv[0], config->show_marks);
24 24
25 if (config->show_marks) { 25 if (config->show_marks) {
26 root_for_each_container(rebuild_marks_iterator, NULL); 26 root_for_each_container(title_bar_update_iterator, NULL);
27 }
28
29 for (int i = 0; i < root->outputs->length; ++i) {
30 struct sway_output *output = root->outputs->items[i];
31 output_damage_whole(output);
32 } 27 }
33 28
34 return cmd_results_new(CMD_SUCCESS, NULL); 29 return cmd_results_new(CMD_SUCCESS, NULL);