From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.devel Subject: Help with tooltips and events Date: Fri, 23 Oct 2020 15:12:44 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31864"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: eliz@gnu.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 23 15:14:22 2020 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 1kVwti-0008Be-2p for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Oct 2020 15:14:22 +0200 Original-Received: from localhost ([::1]:59718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVwth-0005X2-3x for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Oct 2020 09:14:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51638) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVwsK-0004Xa-9Z for emacs-devel@gnu.org; Fri, 23 Oct 2020 09:12:56 -0400 Original-Received: from mail-oln040092068024.outbound.protection.outlook.com ([40.92.68.24]:27213 helo=EUR02-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVwsD-0008Hu-T4; Fri, 23 Oct 2020 09:12:55 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ldCq8khPt05xxJT45j6WHScjjuy/W45TqCsqI56Nn4ftHiSF5kRuO/yOx8ZzpTX8XxTRZx1GmuHCXxDakul4xa3D9s5gEMKGqtPvTgJWWVadQmp3ezxtBSNm9gFdSu+7nrzmp+3OWvdlBi6bojfSbLeco2JwlLOJoVDKpFDS/6wvQKj8ys6uPv5s1X4it5OftrbMf1bjBceN90ZFncWrQKyKG7SOGQgC921bGPRdfaju7Ca/MpSlDIb94k1LTLTq/rWxqqzIs4Zgq7WdWTrrXcKtRTJ/kr6oWJnSX7EzV4YO3PO82/0++NoZhoDkysLykhnYyizEbKs/Q8Gf5O74vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4kBt9FrOAl3cjHLnQdeXEvKaxQRdFJNBlpXwpkGq58k=; b=LW9Y4DawnxqTlny+C+u8kDcFqu8Czb1tNHOP3p9wxAMoQoLMPouQW5LtvheNWOsY/GZN3wA3swXKfxcjj2p1X1vQTup4+QWAlfIZB8/BEORuOfN90kCj/5FwEIxveuJVmRt5PZ2HFJnPSt9gO6r/tX0k1qqYyNC0qt8oHhgk0/tLEq64pgtXYuhr0YhTEIwBx3OE0AqlOG0airtPvag7qYBL3gJE4gRd0p2uxBqoAaOY2m9zdFE2eMy44qpX23ifTLeWf57zYzu6QOYA8FLHXXERJlYI84v5r5GUQN9uOLLmRRI8T72iJDFS3OgikaOMbNmvtPgRvt8ioAgkM4V9vw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4kBt9FrOAl3cjHLnQdeXEvKaxQRdFJNBlpXwpkGq58k=; b=XJjhEntKsSPSE9bFgiayxPdoY/mg4UOh1wSbXtMpUFcnegZUzK8Tja0vuCmIL91+RgwKRnWBmd+D+mY8M7j1OSEkL1YiRPIXS/gx6vx38AGpax5ErWj48PnM6jPTVNrtIHLZezcG9OvXpkvSeMeSZajHPpBPCrQEih0R7O7hby2Ho7cSU0gHFjbIVFE/orVgkSWXr8XT7vOjcvIqArDzuTCF2K07iCj+VViAQpZ1u3Hy3oUyLnzhdK6jVhm0CF0DXtT/rK7XGr/E+yu/9UBdhxYKUGyveQv7/9uutCtRux8k89qf9ZsLbFn/yYBNIcCixS28yVrGWVGVroIITHC/9Q== Original-Received: from VE1EUR02FT042.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1e::4c) by VE1EUR02HT053.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1e::497) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18; Fri, 23 Oct 2020 13:12:47 +0000 Original-Received: from VI1PR06MB4526.eurprd06.prod.outlook.com (2a01:111:e400:7e1e::40) by VE1EUR02FT042.mail.protection.outlook.com (2a01:111:e400:7e1e::326) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18 via Frontend Transport; Fri, 23 Oct 2020 13:12:47 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:81E059783B2F7704FDC23A388A864E3155DF1073A8F17E13CC57313D0AD0E021; UpperCasedChecksum:BBA29EE6C69C294001D296F359F4275ECABC84FBBA172A8177F87E77E5FA3CCB; SizeAsReceived:7190; Count:44 Original-Received: from VI1PR06MB4526.eurprd06.prod.outlook.com ([fe80::187b:196a:cb2d:adf1]) by VI1PR06MB4526.eurprd06.prod.outlook.com ([fe80::187b:196a:cb2d:adf1%5]) with mapi id 15.20.3477.028; Fri, 23 Oct 2020 13:12:46 +0000 X-TMN: [/HUpq7kuNAJjvfEwYapq/r5MC/9AzBFI] X-ClientProxiedBy: AM6P193CA0138.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:85::43) To VI1PR06MB4526.eurprd06.prod.outlook.com (2603:10a6:803:ac::17) X-Microsoft-Original-Message-ID: <87zh4dnl0z.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (90.230.29.56) by AM6P193CA0138.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:85::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.22 via Frontend Transport; Fri, 23 Oct 2020 13:12:45 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 44 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 4bac445d-b325-45a6-4203-08d8775554d9 X-MS-TrafficTypeDiagnostic: VE1EUR02HT053: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zpYvwh7OurBCFjy0do+LkJ75EUc62FEuAuUWwcG/Ok5UcUgFSM7vA8TdXkWRLXdUwmEfg2Rh0JkouWj1kcxjU/x/n/RceCinxzqoO97aaGuy3BAbKoUuz8Q9yLi/YGtAip7CtF94OrdijnQ2ROkLz72JZNCVg/nANQaFBV2aJjnf+uVeadnKEFGCzqTXVnLczNC96Nkgu5JEe72jD9Q8tg== X-MS-Exchange-AntiSpam-MessageData: uwGiQz8MKYjPPfC/AqXLj8Vb5iv2NQxZyFfCswm2kfktu8IDpD845VHqz/a2visbUCrAAB7Aw1PYoGEhEVkbd+bT0tMMAuTWzoHryOdh6LIXjov52tFwaEqLiOCBjEvtbfG/QOOTPLuqJrdPtQ61jg== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4bac445d-b325-45a6-4203-08d8775554d9 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2020 13:12:45.9281 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: VE1EUR02FT042.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR02HT053 Received-SPF: pass client-ip=40.92.68.24; envelope-from=arthur.miller@live.com; helo=EUR02-HE1-obe.outbound.protection.outlook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/23 09:12:47 X-ACL-Warn: Detected OS = Windows NT kernel [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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.23 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" Xref: news.gmane.io gmane.emacs.devel:258352 Archived-At: Sorry for taking your time guys; I am aware you have 1001 bug to fix; but I need some help in Emacs source. I was looking at those sticky tooltips idea yesterday and I really can't find where do I hack tooltips to let through events for tooltip frame. I need ButtonPress so user can enable the checkbox and I need pointer motion so user can move a tooltip with the mouse. If I can also put the cursor icon to grabbing hand (like in pdf readers) while moving the tooltip tt would be the icing on the cake. Just tell me what mechanism/place do I look at? I have registered tooltip frame for ButtonPressMask and PointerMotionMask at tooltip frame creation time; set no_accept_focus to nil; and let through buffer change events in window.c but it still does not want to talk with me! I have been looking in xterm.c and grepping and searching all over the source for tooltip and events, but I can't seem to find where to enable events for tooltips. I have fixed the thing with positioning and popping up; now it work every time, and tooltips are staying on the screen for the specified interval so one can move a pointer in and out. It was just deleayd timeout that was spooking.