shell: Don't annouce toplevels before they have contents
This commit is contained in:
parent
5a8840b12e
commit
4ed3aceefc
5 changed files with 29 additions and 14 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue