stacking: Set new window geometry asap
This commit is contained in:
parent
7bd6036926
commit
208c0a1078
1 changed files with 6 additions and 0 deletions
|
|
@ -157,6 +157,12 @@ impl CosmicStack {
|
|||
window.try_force_undecorated(true);
|
||||
window.set_tiled(true);
|
||||
self.0.with_program(|p| {
|
||||
if let Some(mut geo) = p.geometry.lock().unwrap().clone() {
|
||||
geo.loc.y += TAB_HEIGHT;
|
||||
geo.size.h -= TAB_HEIGHT;
|
||||
window.set_geometry(geo);
|
||||
}
|
||||
window.send_configure();
|
||||
if let Some(idx) = idx {
|
||||
p.windows.lock().unwrap().insert(idx, window);
|
||||
p.active.store(idx, Ordering::SeqCst);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue