aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/view.c
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/view.c
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/view.c')
-rw-r--r--sway/tree/view.c30
1 files changed, 0 insertions, 30 deletions
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