From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: "Final" version of tty child frames Date: Sun, 05 Jan 2025 05:03:52 +0100 Message-ID: References: <86wmi0g0x6.fsf@gnu.org> <11a86987cce9fe0a257c3fa58703dc33@finder.org> <86wmgl6jzv.fsf@gnu.org> <092cb755eee3a9b5e06d15c0b07e90b1@finder.org> <276414b03c24964aaeb9e43e8dba5e77@finder.org> <5fedec86bce470555814acbdf999f99d@finder.org> <86h6791khk.fsf@gnu.org> <09b0904da92efad899865b2ece5f3116@finder.org> <23dfc3fde8677a984b4c37a40d09d83b@finder.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33868"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , emacs-devel@gnu.org, rudalics@gmx.at To: Jared Finder Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 05 05:05:00 2025 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tUHsq-0008ge-DC for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Jan 2025 05:05:00 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUHru-0005eK-Tb; Sat, 04 Jan 2025 23:04:02 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tUHrs-0005dc-DB for emacs-devel@gnu.org; Sat, 04 Jan 2025 23:04:00 -0500 Original-Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tUHrp-00073h-Bj; Sat, 04 Jan 2025 23:04:00 -0500 Original-Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-385df53e559so10506238f8f.3; Sat, 04 Jan 2025 20:03:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736049835; x=1736654635; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=G+QqXlojhxqiUMBOvhBlKWhKgfkntAbS1VoHSA/AUXc=; b=livsYiEH2zgWCJvThv+X+SlyeoFKYU10t1Axd3/2tpsUxpZjVgAZI5NEkXGiGAsGMF HBZP6BduZKgtZjFZItO1ba7Ntt9uSScWv0R7z0B3em8IFzhDuWsDkNUE1hthc9CK2X74 FlR0daoFPN/qDww8BnwmLVVXWScPEX7OOH58TP6BvDMjrnhmjtirPk5eFjJZssQtAesH 53LCbcMwLFvaGLoXN/5I2JOuuRaGVeamAvyYDiNJQ05NWWZQdcqqj371fcmKOjbcPIPj MhGfY0TRke3lDgZnf22SDmZBDVyWjKuPHBNVrmbbR2HhNSrRya5UvTbQJKxr5UgmBK8O wiRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736049835; x=1736654635; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=G+QqXlojhxqiUMBOvhBlKWhKgfkntAbS1VoHSA/AUXc=; b=kkjIlGHcjbIbVLqWjC+yNCvxlKrMi26RHUnnk4CV91AM0qcfuDboXjCpec5tXT93sz Sl8+Wor+bwqgv5gymqHFi7A7cQJWnjnRF9fn+kc1lEIvLGfWCTD6O5HJO2Yog/AtkF1k uCYFz1zAqXjaP2tlgnpvwo6ypVm4b/l7I8AsUy1Sw5RYBQF7iFzBgghqRKRBbYqGX9Go /5if9Gdz28DGrT/D90QI6u3MFcnshMXUY6zMR1ziqP5rDxvgafS6n7ud34DdPicr5tWF MDUtz82ikI+YTm4T/D9hI6YAl5kCknP2UKWpvz2/QwH7aNKKflqLfLjKEIus5VLeh+an 1ivg== X-Forwarded-Encrypted: i=1; AJvYcCVOPZpMVcCqIDiROKOkgF01sDtmyGl4oSl2/X2i42D0ggRMkFtdH0JGgeGqcb6yZOS/OLOhcvhG1enE/w==@gnu.org X-Gm-Message-State: AOJu0Yz6dN+tORj1nt65b1Vri5HCAO6oLmhROPynvFQwGv8/WXGIxwPW 5US9l3WeFTQc5c7YWiLO9L0hvCMCtrphb75YzkQ6PkqdxD2Zeg5CzgFoPQ== X-Gm-Gg: ASbGncvx59ZvKlRyEY0X37RhgFzCIwAY6cvR30M5Bjyc7lAR22gApxyndAitdIlrBym erbculHZbWJIE4I9rbLM/o8bHEPNoklTnJECNS4zB6vhBeV2E9soLapxEvxPsmTfb+YZAueH29S Pc3HqOFbPSJqoIG1kf6wq+yZ8InB1iubtIB1de2IsMkfJ3T1ADGBkDieUayJCVPlZXQehqM5rmu 3CMdvpLWePfucqS2GKwOaaaVJtlLfGlUalsSqs6smqOtGALGbTU0L4aiZdEb+c5z23IHpFK//Je SMR8knI2qMZwhPDUxGIdRmUhR7tgnNyVKabsefY+AvoKjyyb4e7XV4wL64NUj1LQQw== X-Google-Smtp-Source: AGHT+IH6eSTKQXoDorgE6D7pASndyOtENkgugg81fDWeSJOcLXSCPT6VeKiabATIN8EzqORCihKMOw== X-Received: by 2002:a05:6000:184e:b0:386:3082:ee2d with SMTP id ffacd0b85a97d-38a223ffb7dmr33454246f8f.41.1736049834756; Sat, 04 Jan 2025 20:03:54 -0800 (PST) Original-Received: from pro2 (p200300e0b747500078d774d9859911e7.dip0.t-ipconnect.de. [2003:e0:b747:5000:78d7:74d9:8599:11e7]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a1c829120sm45792477f8f.6.2025.01.04.20.03.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jan 2025 20:03:53 -0800 (PST) In-Reply-To: <23dfc3fde8677a984b4c37a40d09d83b@finder.org> (Jared Finder's message of "Sat, 04 Jan 2025 14:12:00 -0800") Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=gerd.moellmann@gmail.com; helo=mail-wr1-x42e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:327702 Archived-At: Jared Finder writes: > It was that easy to do. Attached is a patch that adds support for TTY > child frames to a GPM mouse. Thanks! > diff --git a/src/term.c b/src/term.c > index 368e20803e1..bbf0bafb93f 100644 > --- a/src/term.c > +++ b/src/term.c > @@ -141,6 +141,7 @@ #define OUTPUT1_IF(tty, a) \ > struct tty_display_info *gpm_tty = NULL; > > /* Last recorded mouse coordinates. */ > +static Lisp_Object last_mouse_frame; > static int last_mouse_x, last_mouse_y; > #endif /* HAVE_GPM */ I think last_mouse_frame needs a staticpro (&last_mouse_frame) in syms_of_term. Can't say anything else about GPM code, of course :-).