From 60ca2f9c884a19b8940a5275b8fc1e4e239dc29d Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sat, 8 Feb 2020 09:53:50 +0300 Subject: [PATCH] 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. --- anvil/src/shell.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/anvil/src/shell.rs b/anvil/src/shell.rs index 26a7378..86532dc 100644 --- a/anvil/src/shell.rs +++ b/anvil/src/shell.rs @@ -218,7 +218,6 @@ pub fn init_shell( let mut rng = rand::thread_rng(); let x = range.sample(&mut rng); let y = range.sample(&mut rng); - surface.send_configure((0, 0), wl_shell_surface::Resize::None); shell_window_map .borrow_mut() .insert(SurfaceKind::Wl(surface), (x, y));