From nobody Sun May 5 00:58:16 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1600078041; cv=none; d=zohomail.com; s=zohoarc; b=FfODPI3O5C93jzGmcnMGJgfbUH619XiiXXIhXyNEN0dLyT90cUCGAKx2V5zn9iXY9yKdA793hVwzEJHDwv1jiGU7fAjrSHKZ/hx5bKt5t0vDjw+JQsMtzXd6yLBnlHI35qAT33SM+ZNWgvKMoHef7QGJS6PEzSXszzs75E9UuU4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1600078041; h=Content-Type:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=5ZUreP+FawaprRszZiGG955c33T6mtf116IEOKlWjpw=; b=jGokvfJtz0W7htdjNHUaQknzEbDu2B8qk4AIogoQ3F1oLO4Cau/UwlybqgechkfKgE4BR09hrFrwCJ1k6W/RlNmsWdFaXxxGLs1csJBeQoVXuQOF+UlQEoJSE8wYZq0EpggdLXoBltS4pGi8mTPmT/Gs3bJL0AgMgdHmfq6W56E= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1600078041676216.5946446032042; Mon, 14 Sep 2020 03:07:21 -0700 (PDT) Received: from localhost ([::1]:45478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHlOK-0004rK-7F for importer@patchew.org; Mon, 14 Sep 2020 06:07:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHlNm-0004Rd-Lb for qemu-devel@nongnu.org; Mon, 14 Sep 2020 06:06:46 -0400 Received: from hera.aquilenet.fr ([2a0c:e300::1]:41358) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHlNk-0006ZL-JW for qemu-devel@nongnu.org; Mon, 14 Sep 2020 06:06:46 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id C4A1D2B93; Mon, 14 Sep 2020 12:06:39 +0200 (CEST) Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MR8SIEwrmtcp; Mon, 14 Sep 2020 12:06:39 +0200 (CEST) Received: from function (lfbn-bor-1-269-41.w109-215.abo.wanadoo.fr [109.215.109.41]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 0BD162941; Mon, 14 Sep 2020 12:06:39 +0200 (CEST) Received: from samy by function with local (Exim 4.94) (envelope-from ) id 1kHlNe-000kvx-10; Mon, 14 Sep 2020 12:06:38 +0200 X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Date: Mon, 14 Sep 2020 12:06:37 +0200 From: Samuel Thibault To: qemu-devel@nongnu.org, Gerd Hoffmann Subject: [PATCH] ui: Fix default window_id value Message-ID: <20200914100637.eeommoflirxrgaeh@function> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20170609 (1.8.3) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: neutral client-ip=2a0c:e300::1; envelope-from=samuel.thibault@ens-lyon.org; helo=hera.aquilenet.fr X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_NEUTRAL=0.779 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" ./chardev/baum.c expects the default window_id value to be -1, and not 0 which could be confused with a proper window id (when numbered from 0 by the ui backend). This fixes getting Braille output with the curses and gtk frontends. Signed-off-by: Samuel Thibault Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- It would be useful to backport this to stable trees. diff --git a/ui/console.c b/ui/console.c index f8d7643fe4..beb733c833 100644 --- a/ui/console.c +++ b/ui/console.c @@ -1310,6 +1310,7 @@ static QemuConsole *new_console(DisplayState *ds, con= sole_type_t console_type, } s->ds =3D ds; s->console_type =3D console_type; + s->window_id =3D -1; =20 if (QTAILQ_EMPTY(&consoles)) { s->index =3D 0;