From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#1261: 23.0.60; diary-insert-entry and mouse-autoselect-window Date: Mon, 03 Nov 2008 17:17:05 -0500 Message-ID: <98prlcihem.fsf@fencepost.gnu.org> References: <87zlkq3tc1.fsf@escher.local.home> <4905F9A4.3010403@gmx.at> <87tzax4vn4.fsf@escher.local.home> <4906C864.9020103@gmx.at> Reply-To: Glenn Morris , 1261@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1225751437 19413 80.91.229.12 (3 Nov 2008 22:30:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Nov 2008 22:30:37 +0000 (UTC) Cc: 1261@emacsbugs.donarmstrong.com, Stephen Berman To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 03 23:31:37 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kx7xD-0006AX-M4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Nov 2008 23:31:23 +0100 Original-Received: from localhost ([127.0.0.1]:51633 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kx7w6-0006Z4-Tb for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Nov 2008 17:30:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kx7w4-0006Yj-Ff for bug-gnu-emacs@gnu.org; Mon, 03 Nov 2008 17:30:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kx7w2-0006YH-6O for bug-gnu-emacs@gnu.org; Mon, 03 Nov 2008 17:30:11 -0500 Original-Received: from [199.232.76.173] (port=38240 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kx7w1-0006Y3-Vm for bug-gnu-emacs@gnu.org; Mon, 03 Nov 2008 17:30:10 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:39652) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kx7w1-0000IZ-HC for bug-gnu-emacs@gnu.org; Mon, 03 Nov 2008 17:30:09 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mA3MU5Wq022349; Mon, 3 Nov 2008 14:30:05 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mA3MU3bF022275; Mon, 3 Nov 2008 14:30:03 -0800 X-Loop: don@donarmstrong.com Resent-From: Glenn Morris Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 03 Nov 2008 22:30:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1261 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1261-submit@emacsbugs.donarmstrong.com id=B1261.122575080920346 (code B ref 1261); Mon, 03 Nov 2008 22:30:03 +0000 Original-Received: (at 1261) by emacsbugs.donarmstrong.com; 3 Nov 2008 22:20:09 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mA3MK5Y2019981 for <1261@emacsbugs.donarmstrong.com>; Mon, 3 Nov 2008 14:20:07 -0800 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Kx7jN-0004E1-PW; Mon, 03 Nov 2008 17:17:05 -0500 X-Spook: SP4 airframe lynch analyzer nuclear Axis of Evil Rubin X-Ran: e3q;wDz,W>j!m}7x(uz`t\(Y5kAEgg4|k5%[yj~a=4:l{"5KqgVo\S"pb{]~=j!Svh_}6x X-Hue: cyan X-Attribution: GM In-Reply-To: <4906C864.9020103@gmx.at> (martin rudalics's message of "Tue, 28 Oct 2008 09:08:04 +0100") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 03 Nov 2008 17:30:11 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:22142 Archived-At: I tried to debug this some more. As I said, it only happens with the GTK toolkit, not athena. The GTK version seems to call handle_one_xevent many more time than the athena version (event_handler_gdk?). I tried putting a breakpoint at line 6734 of xterm.c, but it was called so often as to be almost unusable. When I managed to reach the point of pressing mouse-3 in the calendar window and brought up the calendar menu, gdb was invoked, but my X session would no longer accept mouse or keyboard events, so I could not switch to my gdb window. :( So then I just printed XWINDOW(last_window) to stderr. It seems that the GTK toolkit associates a popup menu with the topmost window in a frame, irrespective of which window the menu actually lies in front of. When I repeat the initial experiment with the calendar window in the _topmost_ (it is normally in the lowest) window of the frame (this requires making the frame and calendar window tall enough that the mouse cursor stays inside the calendar when selecting "Insert diary entry"), there is no problem.