render: use wlr_scene to render views

This commit is contained in:
Isaac Freund
2023-01-27 22:09:35 +01:00
parent 07294057cb
commit 4f0ce8fceb
13 changed files with 78 additions and 441 deletions

View File

@ -70,5 +70,5 @@ pub fn focusView(
}
fn filter(view: *View, filter_tags: u32) bool {
return view.surface != null and view.pending.tags & filter_tags != 0;
return view.tree.node.enabled and view.pending.tags & filter_tags != 0;
}

View File

@ -78,6 +78,6 @@ pub fn swap(
}
fn filter(view: *View, filter_tags: u32) bool {
return view.surface != null and !view.pending.float and
return view.tree.node.enabled and !view.pending.float and
!view.pending.fullscreen and view.pending.tags & filter_tags != 0;
}

View File

@ -59,6 +59,6 @@ pub fn zoom(
}
fn filter(view: *View, filter_tags: u32) bool {
return view.surface != null and !view.pending.float and
return view.tree.node.enabled and !view.pending.float and
!view.pending.fullscreen and view.pending.tags & filter_tags != 0;
}