shell: Don't annouce toplevels before they have contents

This commit is contained in:
Victoria Brekenfeld 2023-01-27 18:15:54 +01:00
parent 5a8840b12e
commit 4ed3aceefc
5 changed files with 29 additions and 14 deletions

View file

@ -37,7 +37,6 @@ impl XdgShellHandler for State {
fn new_toplevel(&mut self, surface: ToplevelSurface) {
let seat = self.common.last_active_seat().clone();
let window = CosmicSurface::Wayland(Window::new(surface));
self.common.shell.toplevel_info_state.new_toplevel(&window);
self.common.shell.pending_windows.push((window, seat));
// We will position the window after the first commit, when we know its size hints
}