floating: New window spawn positions

This commit is contained in:
Victoria Brekenfeld 2023-11-08 22:59:46 +01:00 committed by Victoria Brekenfeld
parent 495d772a38
commit d09abc4728
3 changed files with 172 additions and 18 deletions

View file

@ -42,6 +42,7 @@ use smithay::{
use std::{
cell::RefCell,
collections::HashSet,
sync::atomic::Ordering,
time::{Duration, Instant},
};
@ -442,6 +443,7 @@ impl MoveGrab {
let mut outputs = HashSet::new();
outputs.insert(output.clone());
window.output_enter(&output, window.geometry()); // not accurate but...
window.moved_since_mapped.store(true, Ordering::SeqCst);
let grab_state = MoveGrabState {
window: window.clone(),