mirror of
https://github.com/swaywm/sway.git
synced 2026-04-03 07:15:39 -04:00
container: Don't track outputs
The scene graph abstraction does this for us
This commit is contained in:
parent
1e018e72b4
commit
5f0801b6f2
10 changed files with 0 additions and 143 deletions
|
|
@ -283,14 +283,6 @@ void output_destroy(struct sway_output *output) {
|
|||
free(output);
|
||||
}
|
||||
|
||||
static void untrack_output(struct sway_container *con, void *data) {
|
||||
struct sway_output *output = data;
|
||||
int index = list_find(con->outputs, output);
|
||||
if (index != -1) {
|
||||
list_del(con->outputs, index);
|
||||
}
|
||||
}
|
||||
|
||||
void output_disable(struct sway_output *output) {
|
||||
if (!sway_assert(output->enabled, "Expected an enabled output")) {
|
||||
return;
|
||||
|
|
@ -305,8 +297,6 @@ void output_disable(struct sway_output *output) {
|
|||
|
||||
output_evacuate(output);
|
||||
|
||||
root_for_each_container(untrack_output, output);
|
||||
|
||||
list_del(root->outputs, index);
|
||||
|
||||
output->enabled = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue