aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2023-04-06 22:23:53 +0200
committerKirill Primak <vyivel@eclair.cafe>2024-01-18 18:36:54 +0300
commit1e018e72b4d57c8f354b9be9686a7a75797cdcab (patch)
tree46e6c588d30ddfc43793d1980b38b8d53bf9bdd7 /sway/commands
parent06ad734e70227ad0527fe11b88ad37e93005ce0c (diff)
Delete old damage tracking code
The new scene graph abstraction handles this for us.
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/client.c5
-rw-r--r--sway/commands/opacity.c1
-rw-r--r--sway/commands/show_marks.c5
-rw-r--r--sway/commands/title_align.c5
-rw-r--r--sway/commands/titlebar_border_thickness.c1
-rw-r--r--sway/commands/titlebar_padding.c1
6 files changed, 0 insertions, 18 deletions
diff --git a/sway/commands/client.c b/sway/commands/client.c
index 7a9cff2c..fd2ac7a8 100644
--- a/sway/commands/client.c
+++ b/sway/commands/client.c
@@ -51,11 +51,6 @@ static struct cmd_results *handle_command(int argc, char **argv, char *cmd_name,
if (config->active) {
root_for_each_container(container_update_iterator, NULL);
-
- for (int i = 0; i < root->outputs->length; ++i) {
- struct sway_output *output = root->outputs->items[i];
- output_damage_whole(output);
- }
}
return cmd_results_new(CMD_SUCCESS, NULL);
diff --git a/sway/commands/opacity.c b/sway/commands/opacity.c
index 96e6228e..1c44a646 100644
--- a/sway/commands/opacity.c
+++ b/sway/commands/opacity.c
@@ -37,6 +37,5 @@ struct cmd_results *cmd_opacity(int argc, char **argv) {
}
con->alpha = val;
- container_damage_whole(con);
return cmd_results_new(CMD_SUCCESS, NULL);
}
diff --git a/sway/commands/show_marks.c b/sway/commands/show_marks.c
index f738144f..fecb5ade 100644
--- a/sway/commands/show_marks.c
+++ b/sway/commands/show_marks.c
@@ -26,10 +26,5 @@ struct cmd_results *cmd_show_marks(int argc, char **argv) {
root_for_each_container(title_bar_update_iterator, NULL);
}
- for (int i = 0; i < root->outputs->length; ++i) {
- struct sway_output *output = root->outputs->items[i];
- output_damage_whole(output);
- }
-
return cmd_results_new(CMD_SUCCESS, NULL);
}
diff --git a/sway/commands/title_align.c b/sway/commands/title_align.c
index 7f5dd3ae..be298a29 100644
--- a/sway/commands/title_align.c
+++ b/sway/commands/title_align.c
@@ -27,10 +27,5 @@ struct cmd_results *cmd_title_align(int argc, char **argv) {
root_for_each_container(arrange_title_bar_iterator, NULL);
- for (int i = 0; i < root->outputs->length; ++i) {
- struct sway_output *output = root->outputs->items[i];
- output_damage_whole(output);
- }
-
return cmd_results_new(CMD_SUCCESS, NULL);
}
diff --git a/sway/commands/titlebar_border_thickness.c b/sway/commands/titlebar_border_thickness.c
index 7c27c163..fa3db3c5 100644
--- a/sway/commands/titlebar_border_thickness.c
+++ b/sway/commands/titlebar_border_thickness.c
@@ -27,7 +27,6 @@ struct cmd_results *cmd_titlebar_border_thickness(int argc, char **argv) {
"Expected output to have a workspace");
}
arrange_workspace(ws);
- output_damage_whole(output);
}
return cmd_results_new(CMD_SUCCESS, NULL);
diff --git a/sway/commands/titlebar_padding.c b/sway/commands/titlebar_padding.c
index 29ce59ff..6999f7a2 100644
--- a/sway/commands/titlebar_padding.c
+++ b/sway/commands/titlebar_padding.c
@@ -33,7 +33,6 @@ struct cmd_results *cmd_titlebar_padding(int argc, char **argv) {
for (int i = 0; i < root->outputs->length; ++i) {
struct sway_output *output = root->outputs->items[i];
arrange_workspace(output_get_active_workspace(output));
- output_damage_whole(output);
}
return cmd_results_new(CMD_SUCCESS, NULL);