floating: Don't drop stack on themselves
This commit is contained in:
parent
6416299d58
commit
10940a723f
1 changed files with 8 additions and 0 deletions
|
|
@ -670,6 +670,14 @@ impl FloatingLayout {
|
|||
window: CosmicMapped,
|
||||
position: Point<i32, Local>,
|
||||
) -> (CosmicMapped, Point<i32, Local>) {
|
||||
if self
|
||||
.hovered_stack
|
||||
.as_ref()
|
||||
.is_some_and(|(stack, _)| stack == &window || !stack.alive())
|
||||
{
|
||||
let _ = self.hovered_stack.take();
|
||||
}
|
||||
|
||||
if let Some((mapped, geo)) = self.hovered_stack.take() {
|
||||
let stack = mapped.stack_ref().unwrap();
|
||||
for surface in window.windows().map(|s| s.0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue