From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#11682: I believe this is an X server bug Date: Fri, 01 Nov 2019 19:29:09 +0100 Message-ID: <87ftj7ih6y.fsf@skangas.se> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="209388"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Hans Meine , 11682@debbugs.gnu.org To: Simon Tatham Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 01 19:30:23 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iQbgl-000sIQ-9l for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2019 19:30:23 +0100 Original-Received: from localhost ([::1]:42030 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQbgj-0004mo-D3 for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2019 14:30:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51558) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQbgS-0004iF-Ps for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 14:30:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQbgR-0007TQ-16 for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 14:30:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48292) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQbgQ-0007Ri-HQ for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 14:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iQbgQ-0000O5-5Q for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 14:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Nov 2019 18:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11682 X-GNU-PR-Package: emacs Original-Received: via spool by 11682-submit@debbugs.gnu.org id=B11682.15726329861432 (code B ref 11682); Fri, 01 Nov 2019 18:30:02 +0000 Original-Received: (at 11682) by debbugs.gnu.org; 1 Nov 2019 18:29:46 +0000 Original-Received: from localhost ([127.0.0.1]:57113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQbg9-0000N1-TP for submit@debbugs.gnu.org; Fri, 01 Nov 2019 14:29:46 -0400 Original-Received: from host.gofardesign.uk ([208.79.239.190]:40982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQbg7-0000Mj-9o for 11682@debbugs.gnu.org; Fri, 01 Nov 2019 14:29:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=UxMHyWNnsbyyF3hSDK+IqgMOxB/4jXyFsMqznqf1vQg=; b=dtluW7xOrj0P7gCV0MK59SGjXO 8sb2IkrR5KbhLer4y90qVFwHgzNHbSioAczGU/OBgD/3nY+V4CdP/6cd3IDAUEajappcuVp6aVTjs OyCkY7kTzWzE1exidaXiN0yqGaGN9Qq9oHd8Seijd4YHQj0dKIJX4574LFYfih1EA/YM=; Original-Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:41328 helo=localhost) by host.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1iQbfb-0000eo-Lb; Fri, 01 Nov 2019 13:29:12 -0500 In-Reply-To: (Simon Tatham's message of "Thu, 24 Jul 2014 15:12:48 +0100") X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: host.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: host.gofardesign.uk: stefan@marxist.se X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170652 Archived-At: Simon Tatham writes: > Hi, > > I found this bug report a few months ago when I was looking to see if > anyone had had the same problem as me. I too found that if VMware > Player had input focus when emacs started up, then emacs would never > recognise the Alt key. > > Debugging with xtruss suggested that the reason for this was that > emacs queried the modifier map at startup, found it empty, and > thereafter listened for MappingNotify in order to know when to reload > the mod map but for some reason it never received any MappingNotify > events. (But it did receive the similar XkbMapNotify when vmware lost > or gained focus.) > > That was on Ubuntu 10.04. The machine where I was seeing the problem > has recently been upgraded to 12.04, and now the problem has stopped > happening - on the same version of emacs. Debugging with xtruss shows > that now emacs _is_ receiving MappingNotify, suggesting that the X > server has changed its behaviour. > > I suspect, in fact, that the following X.Org commit is the fix: > > http://cgit.freedesktop.org/xorg/xserver/commit/?id=3231962db826f5efd431596a309c96e907a191d1 > > which appeared in xorg-server 1.11, which would indeed be consistent > with me having this problem in Ubuntu 10.04 but not 12.04 (which use > xorg-server versions 1.7.6 and 1.11.4 respectively). > > So if anyone else still has this problem, it might be worth letting > them know to check the version of their X server. > > Hope this is helpful! Thanks, that is helpful. It seems like this is not a bug in Emacs then? Hans, can you confirm if using a newer version of xorg-server fixes the problem? If I don't hear back from you within a couple of weeks, Ill just assume that this has been fixed and close this bug. Best regards, Stefan Kangas