From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Simon Tatham Newsgroups: gmane.emacs.bugs Subject: bug#11682: I believe this is an X server bug Date: Thu, 24 Jul 2014 15:12:48 +0100 Message-ID: References: <7543206.IZWW6iXkjA@hmeine-pc> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1406211203 21908 80.91.229.3 (24 Jul 2014 14:13:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Jul 2014 14:13:23 +0000 (UTC) To: 11682@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 24 16:13:17 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XAJll-0003EM-DG for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Jul 2014 16:13:17 +0200 Original-Received: from localhost ([::1]:50144 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAJlk-0001uA-Ss for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Jul 2014 10:13:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAJlb-0001lC-RY for bug-gnu-emacs@gnu.org; Thu, 24 Jul 2014 10:13:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XAJlW-0001ZM-Kk for bug-gnu-emacs@gnu.org; Thu, 24 Jul 2014 10:13:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAJlW-0001ZH-Hd for bug-gnu-emacs@gnu.org; Thu, 24 Jul 2014 10:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XAJlW-0006cm-40 for bug-gnu-emacs@gnu.org; Thu, 24 Jul 2014 10:13:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <7543206.IZWW6iXkjA@hmeine-pc> Resent-From: Simon Tatham Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Jul 2014 14:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11682 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11682-submit@debbugs.gnu.org id=B11682.140621117925455 (code B ref 11682); Thu, 24 Jul 2014 14:13:02 +0000 Original-Received: (at 11682) by debbugs.gnu.org; 24 Jul 2014 14:12:59 +0000 Original-Received: from localhost ([127.0.0.1]:36816 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XAJlP-0006cR-G0 for submit@debbugs.gnu.org; Thu, 24 Jul 2014 10:12:59 -0400 Original-Received: from atreus.tartarus.org ([80.252.125.10]:50222 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XAJlJ-0006cD-HD for 11682@debbugs.gnu.org; Thu, 24 Jul 2014 10:12:53 -0400 Original-Received: from simon by atreus.tartarus.org with local (Exim 4.69) (envelope-from ) id 1XAJlI-0007lt-AB; Thu, 24 Jul 2014 15:12:48 +0100 X-Mailer: Jed/Timber v0.2 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:91772 Archived-At: 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! Cheers, Simon -- import hashlib; print (lambda p,q,g,y,r,s,m: m if (lambda w:(pow(g,int(hashlib. sha1(m).hexdigest(),16)*w%q,p)*pow(y,r*w%q,p)%p)%q)(pow(s,q-2,q))==r else "!" )(0xb80b5dacabab6145, 0xf70027d345023, 0x7643bc4018957897, 0x11c2e5d9951130c9, 0xa54d9cbe4e8ab, 0x746c50eaa1910, "Simon Tatham ")