aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/unmark.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-15 13:14:18 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-17 08:29:14 +1000
commit0e2cc0af3049c6d1b91bda3081238e2e723e81b7 (patch)
tree34a18b12524c8de5bf68712162071abe3e574d71 /sway/commands/unmark.c
parentMerge pull request #1995 from RedSoxFan/fix-1985 (diff)
downloadsway-0e2cc0af3049c6d1b91bda3081238e2e723e81b7.tar.gz
sway-0e2cc0af3049c6d1b91bda3081238e2e723e81b7.tar.zst
sway-0e2cc0af3049c6d1b91bda3081238e2e723e81b7.zip
Implement show_marks
Diffstat (limited to 'sway/commands/unmark.c')
-rw-r--r--sway/commands/unmark.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/commands/unmark.c b/sway/commands/unmark.c
index ea2a5709..1ce2c56b 100644
--- a/sway/commands/unmark.c
+++ b/sway/commands/unmark.c
@@ -10,6 +10,7 @@
10static void remove_all_marks_iterator(struct sway_container *con, void *data) { 10static void remove_all_marks_iterator(struct sway_container *con, void *data) {
11 if (con->type == C_VIEW) { 11 if (con->type == C_VIEW) {
12 view_clear_marks(con->sway_view); 12 view_clear_marks(con->sway_view);
13 view_update_marks_textures(con->sway_view);
13 } 14 }
14} 15}
15 16
@@ -45,6 +46,7 @@ struct cmd_results *cmd_unmark(int argc, char **argv) {
45 } else if (view && !mark) { 46 } else if (view && !mark) {
46 // Clear all marks from the given view 47 // Clear all marks from the given view
47 view_clear_marks(view); 48 view_clear_marks(view);
49 view_update_marks_textures(view);
48 } else if (!view && mark) { 50 } else if (!view && mark) {
49 // Remove mark from whichever view has it 51 // Remove mark from whichever view has it
50 view_find_and_unmark(mark); 52 view_find_and_unmark(mark);