aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree
diff options
context:
space:
mode:
authorLibravatar Alexander Orzechowski <orzechowski.alexander@gmail.com>2023-04-06 22:23:53 +0200
committerLibravatar Kirill Primak <vyivel@eclair.cafe>2024-01-18 18:36:54 +0300
commit1e018e72b4d57c8f354b9be9686a7a75797cdcab (patch)
tree46e6c588d30ddfc43793d1980b38b8d53bf9bdd7 /sway/tree
parentscene_graph: Port view saved buffers (diff)
downloadsway-1e018e72b4d57c8f354b9be9686a7a75797cdcab.tar.gz
sway-1e018e72b4d57c8f354b9be9686a7a75797cdcab.tar.zst
sway-1e018e72b4d57c8f354b9be9686a7a75797cdcab.zip
Delete old damage tracking code
The new scene graph abstraction handles this for us.
Diffstat (limited to 'sway/tree')
-rw-r--r--sway/tree/container.c6
-rw-r--r--sway/tree/view.c30
-rw-r--r--sway/tree/workspace.c1
3 files changed, 0 insertions, 37 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 4aae4d32..cde9dff5 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -597,12 +597,6 @@ bool container_has_ancestor(struct sway_container *descendant,
597 return false; 597 return false;
598} 598}
599 599
600void container_damage_whole(struct sway_container *container) {
601 for (int i = 0; i < root->outputs->length; ++i) {
602 struct sway_output *output = root->outputs->items[i];
603 output_damage_whole_container(output, container);
604 }
605}
606 600
607/** 601/**
608 * Return the output which will be used for scale purposes. 602 * Return the output which will be used for scale purposes.
diff --git a/sway/tree/view.c b/sway/tree/view.c
index 402fa179..2874e88b 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -16,7 +16,6 @@
16#include "log.h" 16#include "log.h"
17#include "sway/criteria.h" 17#include "sway/criteria.h"
18#include "sway/commands.h" 18#include "sway/commands.h"
19#include "sway/desktop.h"
20#include "sway/desktop/transaction.h" 19#include "sway/desktop/transaction.h"
21#include "sway/desktop/idle_inhibit_v1.h" 20#include "sway/desktop/idle_inhibit_v1.h"
22#include "sway/desktop/launcher.h" 21#include "sway/desktop/launcher.h"
@@ -456,34 +455,6 @@ void view_close_popups(struct sway_view *view) {
456 } 455 }
457} 456}
458 457
459void view_damage_from(struct sway_view *view) {
460 for (int i = 0; i < root->outputs->length; ++i) {
461 struct sway_output *output = root->outputs->items[i];
462 output_damage_from_view(output, view);
463 }
464}
465
466void view_for_each_surface(struct sway_view *view,
467 wlr_surface_iterator_func_t iterator, void *user_data) {
468 if (!view->surface) {
469 return;
470 }
471 if (view->impl->for_each_surface) {
472 view->impl->for_each_surface(view, iterator, user_data);
473 } else {
474 wlr_surface_for_each_surface(view->surface, iterator, user_data);
475 }
476}
477
478void view_for_each_popup_surface(struct sway_view *view,
479 wlr_surface_iterator_func_t iterator, void *user_data) {
480 if (!view->surface) {
481 return;
482 }
483 if (view->impl->for_each_popup_surface) {
484 view->impl->for_each_popup_surface(view, iterator, user_data);
485 }
486}
487static bool view_has_executed_criteria(struct sway_view *view, 458static bool view_has_executed_criteria(struct sway_view *view,
488 struct criteria *criteria) { 459 struct criteria *criteria) {
489 for (int i = 0; i < view->executed_criteria->length; ++i) { 460 for (int i = 0; i < view->executed_criteria->length; ++i) {
@@ -1143,7 +1114,6 @@ void view_set_urgent(struct sway_view *view, bool enable) {
1143 view->urgent_timer = NULL; 1114 view->urgent_timer = NULL;
1144 } 1115 }
1145 } 1116 }
1146 container_damage_whole(view->container);
1147 1117
1148 ipc_event_window(view->container, "urgent"); 1118 ipc_event_window(view->container, "urgent");
1149 1119
diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c
index f60b2366..40d33435 100644
--- a/sway/tree/workspace.c
+++ b/sway/tree/workspace.c
@@ -686,7 +686,6 @@ void workspace_detect_urgent(struct sway_workspace *workspace) {
686 if (workspace->urgent != new_urgent) { 686 if (workspace->urgent != new_urgent) {
687 workspace->urgent = new_urgent; 687 workspace->urgent = new_urgent;
688 ipc_event_workspace(NULL, workspace, "urgent"); 688 ipc_event_workspace(NULL, workspace, "urgent");
689 output_damage_whole(workspace->output);
690 } 689 }
691} 690}
692 691