input: Fix override-redirect windows not clickable on their own
This commit is contained in:
parent
07f14314a1
commit
8137b96893
1 changed files with 4 additions and 1 deletions
|
|
@ -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()));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue