input: Fix override-redirect windows not clickable on their own

This commit is contained in:
Victoria Brekenfeld 2024-03-21 12:52:20 +01:00 committed by Victoria Brekenfeld
parent 07f14314a1
commit 8137b96893

View file

@ -54,6 +54,7 @@ use smithay::{
shell::wlr_layer::Layer as WlrLayer, shell::wlr_layer::Layer as WlrLayer,
tablet_manager::{TabletDescriptor, TabletSeatTrait}, tablet_manager::{TabletDescriptor, TabletSeatTrait},
}, },
xwayland::X11Surface,
}; };
#[cfg(not(feature = "debug"))] #[cfg(not(feature = "debug"))]
use tracing::info; use tracing::info;
@ -2322,7 +2323,9 @@ impl State {
} }
} }
if let Some(or) = shell.override_redirect_windows.iter().find(|or| { if let Some(or) = shell.override_redirect_windows.iter().find(|or| {
or.is_in_input_region(&(global_pos.as_logical() - or.geometry().loc.to_f64())) or.is_in_input_region(
&(global_pos.as_logical() - X11Surface::geometry(*or).loc.to_f64()),
)
}) { }) {
return Some((or.clone().into(), X11Surface::geometry(or).loc.as_global())); return Some((or.clone().into(), X11Surface::geometry(or).loc.as_global()));
} }