anvil.shell: don't send first configure to WlShell
It doesn't need it, and it also takes the (0, 0) size literally, which makes everything try to be the smallest size possible initially.
This commit is contained in:
parent
7fa7fe03be
commit
60ca2f9c88
|
@ -218,7 +218,6 @@ pub fn init_shell(
|
||||||
let mut rng = rand::thread_rng();
|
let mut rng = rand::thread_rng();
|
||||||
let x = range.sample(&mut rng);
|
let x = range.sample(&mut rng);
|
||||||
let y = range.sample(&mut rng);
|
let y = range.sample(&mut rng);
|
||||||
surface.send_configure((0, 0), wl_shell_surface::Resize::None);
|
|
||||||
shell_window_map
|
shell_window_map
|
||||||
.borrow_mut()
|
.borrow_mut()
|
||||||
.insert(SurfaceKind::Wl(surface), (x, y));
|
.insert(SurfaceKind::Wl(surface), (x, y));
|
||||||
|
|
Loading…
Reference in New Issue