aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/output.c
diff options
context:
space:
mode:
authorLibravatar Alexander Orzechowski <alex@ozal.ski>2023-02-21 20:58:17 -0500
committerLibravatar Kirill Primak <vyivel@eclair.cafe>2024-01-18 18:36:54 +0300
commit5f0801b6f245cc789ea93b9449dd0c573ef36e66 (patch)
tree657615d28252b0b3bd01ef240ac6ae49dad15f74 /sway/tree/output.c
parentDelete old damage tracking code (diff)
downloadsway-5f0801b6f245cc789ea93b9449dd0c573ef36e66.tar.gz
sway-5f0801b6f245cc789ea93b9449dd0c573ef36e66.tar.zst
sway-5f0801b6f245cc789ea93b9449dd0c573ef36e66.zip
container: Don't track outputs
The scene graph abstraction does this for us
Diffstat (limited to 'sway/tree/output.c')
-rw-r--r--sway/tree/output.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/sway/tree/output.c b/sway/tree/output.c
index 3c8823dc..cd7bf0c2 100644
--- a/sway/tree/output.c
+++ b/sway/tree/output.c
@@ -283,14 +283,6 @@ void output_destroy(struct sway_output *output) {
283 free(output); 283 free(output);
284} 284}
285 285
286static void untrack_output(struct sway_container *con, void *data) {
287 struct sway_output *output = data;
288 int index = list_find(con->outputs, output);
289 if (index != -1) {
290 list_del(con->outputs, index);
291 }
292}
293
294void output_disable(struct sway_output *output) { 286void output_disable(struct sway_output *output) {
295 if (!sway_assert(output->enabled, "Expected an enabled output")) { 287 if (!sway_assert(output->enabled, "Expected an enabled output")) {
296 return; 288 return;
@@ -305,8 +297,6 @@ void output_disable(struct sway_output *output) {
305 297
306 output_evacuate(output); 298 output_evacuate(output);
307 299
308 root_for_each_container(untrack_output, output);
309
310 list_del(root->outputs, index); 300 list_del(root->outputs, index);
311 301
312 output->enabled = false; 302 output->enabled = false;