xwm: Simplify override-redirect handling

This commit is contained in:
Victoria Brekenfeld 2023-01-27 19:51:23 +01:00
parent 4ed3aceefc
commit 5d4afa5641
5 changed files with 55 additions and 210 deletions

View file

@ -421,7 +421,7 @@ impl Common {
}
self.shell.override_redirect_windows.iter().for_each(|or| {
if let Some(wl_surface) = or.surface.wl_surface() {
if let Some(wl_surface) = or.wl_surface() {
with_surfaces_surface_tree(&wl_surface, |surface, states| {
update_surface_primary_scanout_output(
surface,
@ -475,7 +475,7 @@ impl Common {
});
self.shell.override_redirect_windows.iter().for_each(|or| {
if let Some(wl_surface) = or.surface.wl_surface() {
if let Some(wl_surface) = or.wl_surface() {
take_presentation_feedback_surface_tree(
&wl_surface,
&mut output_presentation_feedback,