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:
Ivan Molodetskikh 2020-02-08 09:53:50 +03:00
parent 7fa7fe03be
commit 60ca2f9c88
No known key found for this signature in database
GPG Key ID: 02CE38DA47E9D691
1 changed files with 0 additions and 1 deletions

View File

@ -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));