GNU bug report logs - #26104
26.0.50; In Ubuntu, having mouse over other frame cause Alt key to produce a <switch-frame> event

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Jonathan Ganc <jonganc@HIDDEN>; dated Wed, 15 Mar 2017 03:26:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 26104 <at> debbugs.gnu.org:


Received: (at 26104) by debbugs.gnu.org; 16 Apr 2017 07:15:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 16 03:15:35 2017
Received: from localhost ([127.0.0.1]:49690 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1czePH-0007Xh-9M
	for submit <at> debbugs.gnu.org; Sun, 16 Apr 2017 03:15:35 -0400
Received: from mout.gmx.net ([212.227.17.22]:56021)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1czePE-0007XS-UV
 for 26104 <at> debbugs.gnu.org; Sun, 16 Apr 2017 03:15:33 -0400
Received: from [192.168.1.100] ([213.162.68.14]) by mail.gmx.com (mrgmx102
 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M2nfO-1c9c550SQA-00sfnn; Sun, 16
 Apr 2017 09:15:25 +0200
Message-ID: <58F31A05.6010805@HIDDEN>
Date: Sun, 16 Apr 2017 09:15:17 +0200
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Jonathan Ganc <jonganc@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#26104: 26.0.50; In Ubuntu, having mouse over other frame
 cause Alt key to produce a <switch-frame> event
References: <3517ed20-78a5-f7ea-7594-eeb18c95e90e@HIDDEN>
 <58CB8E1C.7080104@HIDDEN> <e0208661-658c-928c-0c5e-5f472e21304a@HIDDEN>
 <58CCED78.8050904@HIDDEN> <58DF78AB.9010603@HIDDEN>
 <1d493e40-8d0d-a393-081f-55e32bef0857@HIDDEN> <58E4958F.5040200@HIDDEN>
 <c5255932-2b02-0947-1db0-3549b015ddde@HIDDEN> <58E729FC.9050305@HIDDEN>
 <573b3947-b433-33b8-2f2a-be39ef1fd3f9@HIDDEN> <58E8A68E.70603@HIDDEN>
 <2ecfca67-9713-7a0d-7e56-b5801242f782@HIDDEN> <58E9D6B5.9020808@HIDDEN>
 <616065aa-d965-6038-940d-15b4e3aa2e66@HIDDEN> <58F23327.5000709@HIDDEN>
 <83r30tg0yr.fsf@HIDDEN> <58F276E1.1000405@HIDDEN>
 <9f6f3cf5-77b6-3280-387d-084df287090f@HIDDEN>
In-Reply-To: <9f6f3cf5-77b6-3280-387d-084df287090f@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:q3BLE9JYHIZbYJ0ckwvxbOJMLMptw8A1wfYAp6SZ6bHltr/Uf3E
 /xTcKJM8W08XZyoti9VxBhq6G1gRKxmpCkRm2ERhP+so04SiY4GXBrqPLyVuFjT0LAU3dWv
 /ldG57FnGVetlaf+w/VMCoczIDovcXM8c9Y5Q2EaJaroZk+EBeYDuQoJVA1AwF0K5uc+49t
 svu0b1l5858S35NsX1qCA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:9/chVoFTUKY=:oSzh5/q8c3HV6jlO0TFWU4
 u96VqKI8uJuO+a0LxKPASHq/0ZB6CkzZT9RjgKZL+f84go8hxrgW/vJ5xqbfoyhv2LNcHAgyX
 85GpB1pcnaCOswZl61tchqPfFoDHi8BN6Ut2I12puDxrjUURr3hO8Ap3sQ2EzlU6vpRPyCcFY
 D2Xtxv3MQ0dRUdLxwf/u1TCq14kKZA9ZvC5VGlN8fWRa8wLJ8fIww0qVvXasQaGX+r9pQEuIr
 Ok1GT4K7Y+EtCwVYdRW7e9KaPtEQM0nJwNJ13jp/IiLuD+WWUkN02pGKzWzEa7gj2B3LnCizt
 ddL3I35KEGjyy6Hw6E0DiOFevxiaKfV+9q0zgp8e5uk4NFWu2xZennbhK0yNpqAmONEjEbtaM
 TohlgFOPFmbCEr0spJNkhrmc7/Dqfh1eaty6CswgMQB45xhS1hRsNuFsjvURpI7/XeFEAaByt
 DuxXEJ3jR5YN4okURku9Pj8plvtycDxeF0qw6E14n8GPiDyN6pHJ6xINJn7f3LA7UY/4boy96
 hruFryM18pMqaao40j9hXReElO/WsvIDudui850fv/oT5JxQG57LFRt5CDTH4i6q5Xumwjj6E
 IUBer/c7c/eAFIfHPCtRBRDGZXwvd4o49Tyr/6PKWSG53a/DCSGlUQ+Gz07KCVc5cQ3/H8wU9
 i2DediOEnk/5Kt5oOCtPVv4zwIsIYHiBrOG8bGfxibYl2iA5qQw7A8m5N8Ew+BOciBRh36L6s
 Oo7LPxp2bCGfi58Psl3ea3z1KVqqzk9X0YOE0Xm3tHovgUbLulfWX5vtGCGBsq7n/jTY6S2kd
 5WSOk/v0VJPegezwYYeO2pwpLVAIw==
X-Spam-Score: -2.0 (--)
X-Debbugs-Envelope-To: 26104
Cc: 26104 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.0 (--)

 > I'm currently trying to understand the issue better, but I think
 > Compiz Settings just allows to access to more settings (I think Compiz
 > is part of Unity; on my computer, there's always a compiz process). So
 > I think it is actually preventing Ubuntu from sending the event when
 > Alt is pressed, not intercepting Alt, i.e. it doesn't actively do
 > anything.

Sounds reasonable.  So in order to intercept Alt we would have to look
into how Compiz does it.  Till then we should tell people that and how
they can do it via Compiz (or any other window manager able to do the
same).

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26104; Package emacs. Full text available.

Message received at 26104 <at> debbugs.gnu.org:


Received: (at 26104) by debbugs.gnu.org; 15 Apr 2017 20:33:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 15 16:33:43 2017
Received: from localhost ([127.0.0.1]:49431 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1czUO7-0007ZC-68
	for submit <at> debbugs.gnu.org; Sat, 15 Apr 2017 16:33:43 -0400
Received: from mail-qt0-f195.google.com ([209.85.216.195]:32901)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jonganc@HIDDEN>) id 1czUO6-0007Z1-4t
 for 26104 <at> debbugs.gnu.org; Sat, 15 Apr 2017 16:33:42 -0400
Received: by mail-qt0-f195.google.com with SMTP id c45so14728766qtb.0
 for <26104 <at> debbugs.gnu.org>; Sat, 15 Apr 2017 13:33:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:references:cc:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-transfer-encoding;
 bh=ZkgTDBbl9rsLnffueXaruVR/87pv0iLvsoK7tt53RdY=;
 b=M06fgF1r5y7xbV8udca6d+Pal0UQ4UqJKmAZmblTnCeSkIRjOYxmRYEmrwng3zkeIr
 fVsDxPYyD6TNMQdjL8muWeUz9eSe8FYparMCWDNCReib0fQtbzJgBAhTxWhTSwU2t2fI
 UOPHhkzvWMnPeq6rwf5z0Yyamc9RcjMH5jQY8NW+u4+4vx5hUacmFV2RxHo7KNa+8z1z
 ZXop7Bp07sp23cKZXp2IdyPuYbwLv4zlIKT97YND8hop/SCMpaDqZ1X9NmIFDJZyRKx4
 A+5phE+kxzkK62M/gaoiQzFQHm1E1OPkT1GZ7bMSvIXHmvE55U1eoAKT70eQ1qfOMAPw
 wPIg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:cc:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-transfer-encoding;
 bh=ZkgTDBbl9rsLnffueXaruVR/87pv0iLvsoK7tt53RdY=;
 b=ALxTQJ0mWFNlyyVaXX2w9B7Ii1v9cKwjWX6sGYn1MyNHFyYdPgZy5rBwmD+6HdA3i7
 Xu0eDo+FXP9vhxBgEZXuKiBTJE//NDf9TgQfgIrPD+zsj1qtJKGT6g7ShvdheN1exmjO
 qcxkMm6cXwly34cNt/P/tuuAeBUxOP3zOsjYQa0hCm+rdU1v8Q5CXuIkjgweBrxTgHVT
 DfP+/yaGT5F0ut48jHLVsfmb0Pg3lAO2WNlz+GCWhcPDzIklCJla94ft3aW6V4uCijrW
 jOdbttpzMklC19WDDdzTe7itYITgOuWyxKJHwYfGPNUJd77EUUH9WXN4sVDJ/K1Zr4Ip
 kUEw==
X-Gm-Message-State: AN3rC/7crzOyDyKaISPk2v0eBd6/RrIRfqmeFvoSgEIS2gsvZr2VwVpG
 59leOrGkcxlA6A==
X-Received: by 10.200.37.16 with SMTP id 16mr3491505qtm.293.1492288416704;
 Sat, 15 Apr 2017 13:33:36 -0700 (PDT)
Received: from [192.168.1.200] (static-98-118-34-152.bstnma.fios.verizon.net.
 [98.118.34.152])
 by smtp.gmail.com with ESMTPSA id q15sm3803863qtc.1.2017.04.15.13.33.36
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 15 Apr 2017 13:33:36 -0700 (PDT)
Subject: Re: bug#26104: 26.0.50; In Ubuntu, having mouse over other frame
 cause Alt key to produce a <switch-frame> event
To: martin rudalics <rudalics@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
References: <3517ed20-78a5-f7ea-7594-eeb18c95e90e@HIDDEN>
 <58CB8E1C.7080104@HIDDEN> <e0208661-658c-928c-0c5e-5f472e21304a@HIDDEN>
 <58CCED78.8050904@HIDDEN> <58DF78AB.9010603@HIDDEN>
 <1d493e40-8d0d-a393-081f-55e32bef0857@HIDDEN> <58E4958F.5040200@HIDDEN>
 <c5255932-2b02-0947-1db0-3549b015ddde@HIDDEN> <58E729FC.9050305@HIDDEN>
 <573b3947-b433-33b8-2f2a-be39ef1fd3f9@HIDDEN> <58E8A68E.70603@HIDDEN>
 <2ecfca67-9713-7a0d-7e56-b5801242f782@HIDDEN> <58E9D6B5.9020808@HIDDEN>
 <616065aa-d965-6038-940d-15b4e3aa2e66@HIDDEN> <58F23327.5000709@HIDDEN>
 <83r30tg0yr.fsf@HIDDEN> <58F276E1.1000405@HIDDEN>
From: Jonathan Ganc <jonganc@HIDDEN>
Message-ID: <29dd8123-845e-ccdd-0d5a-f069f932d9a0@HIDDEN>
Date: Sat, 15 Apr 2017 16:33:35 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <58F276E1.1000405@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 26104
Cc: 26104 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

In particular, setting it in Compiz Settings is equivalent to running this:

dconf write /org/compiz/profiles/unity/plugins/unityshell/show-menu-bar 
"'Disabled'"


On 04/15/2017 03:39 PM, martin rudalics wrote:
> > Heh, it looks like they copied the MS-Windows (mis)feature, whereby
> > tapping the Alt key activates the menu bar, which would indeed require
> > a focus-in event; seems like some GNU/Linux distros have joined this
> > lunacy.  In the MS-Windows build, we have w32-pass-alt-to-system to
> > control that.
>
> If I'm not mistaken, on MS-Windows you can activate the menu bar of a
> window via the Alt key iff that window has focus already.  I still fail
> to understand how pressing the Alt key could transfer focus to another
> window.
>
> > Perhaps we should generalize w32-pass-alt-to-system instead? Assuming
> > an application can control this behavior on GNU/Linux, that is.
>
> If Compiz can, Emacs should be able to do that too.
>
> martin





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26104; Package emacs. Full text available.

Message received at 26104 <at> debbugs.gnu.org:


Received: (at 26104) by debbugs.gnu.org; 15 Apr 2017 20:23:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 15 16:23:52 2017
Received: from localhost ([127.0.0.1]:49418 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1czUEa-0007Js-N3
	for submit <at> debbugs.gnu.org; Sat, 15 Apr 2017 16:23:52 -0400
Received: from mail-qt0-f195.google.com ([209.85.216.195]:36285)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jonganc@HIDDEN>) id 1czUEZ-0007Jf-6L
 for 26104 <at> debbugs.gnu.org; Sat, 15 Apr 2017 16:23:51 -0400
Received: by mail-qt0-f195.google.com with SMTP id t52so3168717qtb.3
 for <26104 <at> debbugs.gnu.org>; Sat, 15 Apr 2017 13:23:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:references:cc:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-transfer-encoding;
 bh=yXkGCMUCAsuWYvpONxxQs9f9FOqQQiIDuH6Gjv6OSbY=;
 b=HPeyKDeIzYESkGEyhrdSUyuYNbZl7BAbrae8QzO2vp2Tp6ycwuRZwReTHWUQ4PO4+J
 RdAWfxQdZyMSSrMmi9wvf0Nsb855XctuRehUPKmuvnOPzkhiFgay2MDS6ZsUClLHO4oe
 XPvtiZR8xfenSt9vHLq7n7eJmA/xC4fmmH1bNO31dc/rDK5TfX6GHqdgyxwNvXQ6MonT
 vcAKgdBDWPvhSa+BbTX+kMVlNngpCrFZlHxKSDu4L39MFfQw0V6ehjB/0DNyB0sMPBCn
 z1Tdl2GwXI9ELaDE6hrc52sXQs8RX+CsnGvbgJbtHh03Vs3YTojoM6hxWaX3hxRyKEPY
 fOvQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:cc:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-transfer-encoding;
 bh=yXkGCMUCAsuWYvpONxxQs9f9FOqQQiIDuH6Gjv6OSbY=;
 b=JFiQGXeNEhBH5c/WMBkc8OzpiPeopWyU7ex5FL5GZe5cM8sQjzCVQjmLqbn/M5m0nw
 AHIX3ANBHsY3FCqz6NXaaqS0BPjcddTT/q/vgcZWLcWbN/p+ieyEetE0YP1Vp8P0TXrO
 hRbrKQ27PLXNlP9sK4VgjyXLQe9Ek4ZhoCmJLtxUQgm1SKe6PWEJ5Oo0pFUkYTARjhyu
 XXsy1uOHJxndGQDCKc1mp81hyjWo7lmEx0IJIcDRqtcXdd5wQ61ZuIehy81aU0DdCe/+
 7vG/E8ouqKLhdhvnyvZYREHxdgI6WEhvicEHKnX//yAWxZo3UjsJuuD5eJNztAgZwt/5
 iaDg==
X-Gm-Message-State: AN3rC/4nZIAgu6jP6QGV194tsIFQUEVkDm1q6n3qPFzSpLe50LkzIkyq
 ROUWqHKZ5b1NcA==
X-Received: by 10.237.41.229 with SMTP id o92mr3257953qtd.90.1492287825622;
 Sat, 15 Apr 2017 13:23:45 -0700 (PDT)
Received: from [192.168.1.200] (static-98-118-34-152.bstnma.fios.verizon.net.
 [98.118.34.152])
 by smtp.gmail.com with ESMTPSA id o91sm3748876qte.42.2017.04.15.13.23.44
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 15 Apr 2017 13:23:45 -0700 (PDT)
Subject: Re: bug#26104: 26.0.50; In Ubuntu, having mouse over other frame
 cause Alt key to produce a <switch-frame> event
To: martin rudalics <rudalics@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
References: <3517ed20-78a5-f7ea-7594-eeb18c95e90e@HIDDEN>
 <58CB8E1C.7080104@HIDDEN> <e0208661-658c-928c-0c5e-5f472e21304a@HIDDEN>
 <58CCED78.8050904@HIDDEN> <58DF78AB.9010603@HIDDEN>
 <1d493e40-8d0d-a393-081f-55e32bef0857@HIDDEN> <58E4958F.5040200@HIDDEN>
 <c5255932-2b02-0947-1db0-3549b015ddde@HIDDEN> <58E729FC.9050305@HIDDEN>
 <573b3947-b433-33b8-2f2a-be39ef1fd3f9@HIDDEN> <58E8A68E.70603@HIDDEN>
 <2ecfca67-9713-7a0d-7e56-b5801242f782@HIDDEN> <58E9D6B5.9020808@HIDDEN>
 <616065aa-d965-6038-940d-15b4e3aa2e66@HIDDEN> <58F23327.5000709@HIDDEN>
 <83r30tg0yr.fsf@HIDDEN> <58F276E1.1000405@HIDDEN>
From: Jonathan Ganc <jonganc@HIDDEN>
Message-ID: <9f6f3cf5-77b6-3280-387d-084df287090f@HIDDEN>
Date: Sat, 15 Apr 2017 16:23:44 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <58F276E1.1000405@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 26104
Cc: 26104 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

I'm currently trying to understand the issue better, but I think Compiz 
Settings just allows to access to more settings (I think Compiz is part 
of Unity; on my computer, there's always a compiz process). So I think 
it is actually preventing Ubuntu from sending the event when Alt is 
pressed, not intercepting Alt, i.e. it doesn't actively do anything.


On 04/15/2017 03:39 PM, martin rudalics wrote:
> > Heh, it looks like they copied the MS-Windows (mis)feature, whereby
> > tapping the Alt key activates the menu bar, which would indeed require
> > a focus-in event; seems like some GNU/Linux distros have joined this
> > lunacy.  In the MS-Windows build, we have w32-pass-alt-to-system to
> > control that.
>
> If I'm not mistaken, on MS-Windows you can activate the menu bar of a
> window via the Alt key iff that window has focus already.  I still fail
> to understand how pressing the Alt key could transfer focus to another
> window.
>
> > Perhaps we should generalize w32-pass-alt-to-system instead? Assuming
> > an application can control this behavior on GNU/Linux, that is.
>
> If Compiz can, Emacs should be able to do that too.
>
> martin





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26104; Package emacs. Full text available.

Message received at 26104 <at> debbugs.gnu.org:


Received: (at 26104) by debbugs.gnu.org; 15 Apr 2017 19:39:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 15 15:39:28 2017
Received: from localhost ([127.0.0.1]:49384 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1czTXc-0006I2-DS
	for submit <at> debbugs.gnu.org; Sat, 15 Apr 2017 15:39:28 -0400
Received: from mout.gmx.net ([212.227.15.18]:59837)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1czTXa-0006Hj-4M
 for 26104 <at> debbugs.gnu.org; Sat, 15 Apr 2017 15:39:26 -0400
Received: from [192.168.1.100] ([213.162.68.102]) by mail.gmx.com (mrgmx002
 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M6AbC-1c5zDD1znG-00y9pQ; Sat, 15
 Apr 2017 21:39:17 +0200
Message-ID: <58F276E1.1000405@HIDDEN>
Date: Sat, 15 Apr 2017 21:39:13 +0200
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#26104: 26.0.50; In Ubuntu, having mouse over other frame
 cause Alt key to produce a <switch-frame> event
References: <3517ed20-78a5-f7ea-7594-eeb18c95e90e@HIDDEN>	<58CB8E1C.7080104@HIDDEN>	<e0208661-658c-928c-0c5e-5f472e21304a@HIDDEN>	<58CCED78.8050904@HIDDEN>
 <58DF78AB.9010603@HIDDEN>	<1d493e40-8d0d-a393-081f-55e32bef0857@HIDDEN>	<58E4958F.5040200@HIDDEN>	<c5255932-2b02-0947-1db0-3549b015ddde@HIDDEN>	<58E729FC.9050305@HIDDEN>	<573b3947-b433-33b8-2f2a-be39ef1fd3f9@HIDDEN>	<58E8A68E.70603@HIDDEN>	<2ecfca67-9713-7a0d-7e56-b5801242f782@HIDDEN>	<58E9D6B5.9020808@HIDDEN>	<616065aa-d965-6038-940d-15b4e3aa2e66@HIDDEN>
 <58F23327.5000709@HIDDEN> <83r30tg0yr.fsf@HIDDEN>
In-Reply-To: <83r30tg0yr.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:bguGRuMPgc7U2V8MjG243uUdF+5PA34tRgHbekfojNfTjAwmjkK
 LYJUp5RAHZSKEmwNZ0JjVyjkRBmLNU24wLnmxJYmU45eBZl6MscQwY5LVED29cTxm0JQ8bG
 KZ/GZ1KWb7bz9b7MLkud5L+OKi/Km4Z7dkBX1pNx8suRGblVd7oho+JcnkTfRp4YfS+smO/
 jC1YS2Jb0eI4hZc4kC6/g==
X-UI-Out-Filterresults: notjunk:1;V01:K0:YaazpKJ3Rz0=:itAPEyeq5zjnZkK7wJNb7x
 aBznBgTCyGF9t2hs4l8e62Fg4SDptFlYv6jlThT7lwOYtm/xcI+Z2uLuT/bVvbuE3USkHCrPj
 zKbgBA0L6IUBluwCCBorVf0BekW17QcqOIB0ZShX6zbAuUxj345Xj6ermT7bRMzmAvRRJ/EIb
 Cas06LsAt3YDo/YX5T1sFnCRD+O3RdZwh9/C5phSoVvv6piPbMqZandIeWE4TwovwK6GbGXU0
 Ldky847tygjwbRf2MGj5rPe4mHV8Vz5OH4CkHbVciLXqT+qON5RLxFkV3OAQMIWB3qiOTUrFT
 qW/e+fgo9++nY/PCdDkyV2D//Ut5EN4lonUiC72zVwNAKb7ip049egcPAa0deIDCkWeQjQafu
 2djcDXyOHXyU4k+kk4KAuhbzVUg1jzFvXsaQW9WTLYV4aT7fomE+Y41X7SIfMXX99JIAN5jIj
 ppR7o/sUt2AQFmh6CLPKwh/LE3emeMx6dRNcGrdDciToUTW6ib8L+UlCihxmWwoJPG9WRsHjL
 fI3uWvI5QONkQZKqaLAloahEgtknMdFyFBATzGGUZ7xSgo2AvnsI6B3V+1RQIrVAP2NfPcYHn
 OuqprZ9v2n2Y9g7k/kOoIvLzTHgQTT7dKN+FKTHXs21YGgywqCN4N6kHl9H91bYcF04YEV9d4
 4AwqBNj5szWiaLZ5t6W0ImOdYiM/vsZtBUrCap6rTdDNodk9FAsPuo6xVj+5c6JUlRFwOtO+8
 KSXBSK4FUBMMI32EGnYZFFloJ5b9HVARqHyRFaIIcL3x6+mVUhgtEhxmJMBkKWLOBBCwvH/uz
 fHa6mi+lhletn3b8AJnKOoM3DGZ7A==
X-Spam-Score: -2.0 (--)
X-Debbugs-Envelope-To: 26104
Cc: jonganc@HIDDEN, 26104 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.0 (--)

 > Heh, it looks like they copied the MS-Windows (mis)feature, whereby
 > tapping the Alt key activates the menu bar, which would indeed require
 > a focus-in event; seems like some GNU/Linux distros have joined this
 > lunacy.  In the MS-Windows build, we have w32-pass-alt-to-system to
 > control that.

If I'm not mistaken, on MS-Windows you can activate the menu bar of a
window via the Alt key iff that window has focus already.  I still fail
to understand how pressing the Alt key could transfer focus to another
window.

 > Perhaps we should generalize w32-pass-alt-to-system instead?  Assuming
 > an application can control this behavior on GNU/Linux, that is.

If Compiz can, Emacs should be able to do that too.

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26104; Package emacs. Full text available.

Message received at 26104 <at> debbugs.gnu.org:


Received: (at 26104) by debbugs.gnu.org; 15 Apr 2017 15:11:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 15 11:11:09 2017
Received: from localhost ([127.0.0.1]:49101 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1czPLw-0002nQ-VA
	for submit <at> debbugs.gnu.org; Sat, 15 Apr 2017 11:11:09 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54828)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1czPLu-0002n3-M1
 for 26104 <at> debbugs.gnu.org; Sat, 15 Apr 2017 11:11:07 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1czPLm-0003pQ-5g
 for 26104 <at> debbugs.gnu.org; Sat, 15 Apr 2017 11:11:01 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46248)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1czPLm-0003pF-1p; Sat, 15 Apr 2017 11:10:58 -0400
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1579
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1czPLl-00062X-9L; Sat, 15 Apr 2017 11:10:57 -0400
Date: Sat, 15 Apr 2017 18:11:24 +0300
Message-Id: <83r30tg0yr.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>
In-reply-to: <58F23327.5000709@HIDDEN> (message from martin rudalics on Sat,
 15 Apr 2017 16:50:15 +0200)
Subject: Re: bug#26104: 26.0.50;
 In Ubuntu, having mouse over other frame cause Alt key to produce a
 <switch-frame> event
References: <3517ed20-78a5-f7ea-7594-eeb18c95e90e@HIDDEN>
 <58CB8E1C.7080104@HIDDEN>
 <e0208661-658c-928c-0c5e-5f472e21304a@HIDDEN>
 <58CCED78.8050904@HIDDEN> <58DF78AB.9010603@HIDDEN>
 <1d493e40-8d0d-a393-081f-55e32bef0857@HIDDEN>
 <58E4958F.5040200@HIDDEN>
 <c5255932-2b02-0947-1db0-3549b015ddde@HIDDEN>
 <58E729FC.9050305@HIDDEN>
 <573b3947-b433-33b8-2f2a-be39ef1fd3f9@HIDDEN>
 <58E8A68E.70603@HIDDEN>
 <2ecfca67-9713-7a0d-7e56-b5801242f782@HIDDEN>
 <58E9D6B5.9020808@HIDDEN>
 <616065aa-d965-6038-940d-15b4e3aa2e66@HIDDEN> <58F23327.5000709@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 26104
Cc: jonganc@HIDDEN, 26104 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> Date: Sat, 15 Apr 2017 16:50:15 +0200
> From: martin rudalics <rudalics@HIDDEN>
> 
>  > I found the setting that causes the issue. In CompizConfig (i.e. apt
>  > package compizconfig-settings-manager), go to Ubuntu Unity Plugin, and
>  > then, under General, disable "Key to show the menu bar while
>  > pressed". The problem goes away. (The irony is that I dislike the menu
>  > hiding and had it disabled anyway).
> 
> Hmm..  I don't understand well (not using Compiz).  Which key is that
> and why would it cause a focus-in event when moving the mouse?  Or is
> that key the <Alt> key and pressing it causes a focus-in event?

Heh, it looks like they copied the MS-Windows (mis)feature, whereby
tapping the Alt key activates the menu bar, which would indeed require
a focus-in event; seems like some GNU/Linux distros have joined this
lunacy.  In the MS-Windows build, we have w32-pass-alt-to-system to
control that.

(Sometimes it seems to me like GNU/Linux developers have no GUI ideas
of their own, and all they can do is copycat from MS-Windows.)

> If so, we should mention that somewhere, either in the manual or in
> PROBLEMS.

Perhaps we should generalize w32-pass-alt-to-system instead?  Assuming
an application can control this behavior on GNU/Linux, that is.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26104; Package emacs. Full text available.

Message received at 26104 <at> debbugs.gnu.org:


Received: (at 26104) by debbugs.gnu.org; 15 Apr 2017 14:50:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 15 10:50:28 2017
Received: from localhost ([127.0.0.1]:49092 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1czP1w-0002Jf-0m
	for submit <at> debbugs.gnu.org; Sat, 15 Apr 2017 10:50:28 -0400
Received: from mout.gmx.net ([212.227.17.22]:52308)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1czP1u-0002JQ-9K
 for 26104 <at> debbugs.gnu.org; Sat, 15 Apr 2017 10:50:26 -0400
Received: from [192.168.1.100] ([213.162.68.80]) by mail.gmx.com (mrgmx101
 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LyA2L-1bwwN440bV-015d0r; Sat, 15
 Apr 2017 16:50:20 +0200
Message-ID: <58F23327.5000709@HIDDEN>
Date: Sat, 15 Apr 2017 16:50:15 +0200
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Jonathan Ganc <jonganc@HIDDEN>, 26104 <at> debbugs.gnu.org
Subject: Re: bug#26104: 26.0.50; In Ubuntu, having mouse over other frame
 cause Alt key to produce a <switch-frame> event
References: <3517ed20-78a5-f7ea-7594-eeb18c95e90e@HIDDEN>
 <58CB8E1C.7080104@HIDDEN> <e0208661-658c-928c-0c5e-5f472e21304a@HIDDEN>
 <58CCED78.8050904@HIDDEN> <58DF78AB.9010603@HIDDEN>
 <1d493e40-8d0d-a393-081f-55e32bef0857@HIDDEN> <58E4958F.5040200@HIDDEN>
 <c5255932-2b02-0947-1db0-3549b015ddde@HIDDEN> <58E729FC.9050305@HIDDEN>
 <573b3947-b433-33b8-2f2a-be39ef1fd3f9@HIDDEN> <58E8A68E.70603@HIDDEN>
 <2ecfca67-9713-7a0d-7e56-b5801242f782@HIDDEN> <58E9D6B5.9020808@HIDDEN>
 <616065aa-d965-6038-940d-15b4e3aa2e66@HIDDEN>
In-Reply-To: <616065aa-d965-6038-940d-15b4e3aa2e66@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:0DhPlSNwFqUG91atwywpCdxbmYPq/U/ymymTOAuHGr7oPgYprdj
 KZq4lUBlVWNXW4ho+z12w299OOptHCzj1P+2CoUAmJpNJ6rRnskQJrwwxI47ZgPxH3tDusN
 aLaJTaCRv/aWSSz5C90y9eaA30tscqSGnY5uQ7Pn1PbywF7K62ohyrrFL+lb9LosMDRqi5s
 pPJw4gV/pv7OkFCq6yqdA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:3mZ2I/I+80I=:meikdCPqP0IZDxI/5cSxvM
 i+tz7QQ8KRASoT/1ZdwQtv5Onwfg2pqflV5E5/rmP/yxawSC/MUZIQK4P2nygPJ8JAh0dhEHE
 QRJKmn6tToVvDiA9qa7f7cx8CHa4rHLsJ68VH2WN7DW1DMpzMScW4Xz1c8ycjhnsyXiLQJTZg
 jgeW98RwBqTfO/PT+zQ0l93vcHBCUfdQ4RKHb9CI/dehJPPXqyCKnrc61K6OvyPH7v5ejcLs2
 XKmjp8tTogai/flLGZAU4op+YCX2dxPKDMBoeE5VP87ueROthMeWswNGfdvz4s6j4zHrrMkcl
 unb0/8klxvM6OTjvz8f+OeczjY2Nf0xlkH4Wjq2NuwW+20ivqXxJv0/QOj4AOhDAsNxMSwSlO
 CVzqUE8dUgspvdqjkyvTVrVAMcWdnwHglwbcyZcPWJ+mbYK9YoFQ+AqAL3m96Hms18927HRFB
 DTOBUUadCi/9S7CHzy9fNY9YbO6YR1Xcv1g3mpXd86RiyR0Y3UgRQdEQVagWJvyMdRjXJR0iv
 CtPS1vp5ikFQ1Ml8VK63s8LJl7iGiudD/pi9w4T+ZGB3cdgoF7KNONsV0VooLmlVpKqlKnpGa
 +ksIYbHdNFTvO3zpn1ise59SCEKQMMv11qysTB49KbFhoRKVavTfAzAfL70G4tliHbiiNv848
 wIO3rCblKdN5HXStIquEl/8EWP4tukaaQtn4Zc4IUNDU26vkxsEbFiGEFT8dXBNTLAA91mss8
 y98OyujPINoyxAwdsMY2nXkWoyjS6PjwY9CtU45tCvaW6dVY9NogvRsfws6/9yE01nQzugu1N
 yTaa0O5boKGJPc7mv8aqDgjXxjczg==
X-Spam-Score: -2.0 (--)
X-Debbugs-Envelope-To: 26104
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.0 (--)

 > I found the setting that causes the issue. In CompizConfig (i.e. apt
 > package compizconfig-settings-manager), go to Ubuntu Unity Plugin, and
 > then, under General, disable "Key to show the menu bar while
 > pressed". The problem goes away. (The irony is that I dislike the menu
 > hiding and had it disabled anyway).

Hmm..  I don't understand well (not using Compiz).  Which key is that
and why would it cause a focus-in event when moving the mouse?  Or is
that key the <Alt> key and pressing it causes a focus-in event?  If so,
we should mention that somewhere, either in the manual or in PROBLEMS.

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26104; Package emacs. Full text available.

Message received at 26104 <at> debbugs.gnu.org:


Received: (at 26104) by debbugs.gnu.org; 15 Apr 2017 09:42:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 15 05:42:03 2017
Received: from localhost ([127.0.0.1]:47856 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1czKDS-00082X-Rf
	for submit <at> debbugs.gnu.org; Sat, 15 Apr 2017 05:42:03 -0400
Received: from mail-qk0-f181.google.com ([209.85.220.181]:33906)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jonganc@HIDDEN>) id 1czKDS-000823-5u
 for 26104 <at> debbugs.gnu.org; Sat, 15 Apr 2017 05:42:02 -0400
Received: by mail-qk0-f181.google.com with SMTP id p68so79954324qke.1
 for <26104 <at> debbugs.gnu.org>; Sat, 15 Apr 2017 02:42:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:references:from:message-id:date:user-agent:mime-version
 :in-reply-to:content-transfer-encoding;
 bh=GLi7M3JvfmHuXbfmYfUvKrvyBHDUMNa1faIHdyh1pG0=;
 b=qy7RWAe8FDGEB3RqYQ1z5q1GpowGWflsyDcVUgtnDKJKf/NBIdSQm0J638+ivvXJzo
 hCHxdKBQ1pBYa8KYwN0YhZT5W6JAqe2MjUI/f6sGDtmnHXxm/Mn5VtmbdVPYKPvJQqxT
 zuNmDCrc+CdvkCoJHcrVTle7dCmNabDjI1zn0uEBK94BSp1DILGxotI8Xw1UnK46USHt
 AXIIAj99rua9Q9VcAxFE2DIONz+Bm7K6M/R05BGaCQWpLBQ1UefVXNTHabxe4yzPXEsH
 bDJoXlK1JVR352WYnM2TM++8cPu6aE6ZbHGKnV560nlgTJi717zTbcXT9WGuVY9okrF1
 coAg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-transfer-encoding;
 bh=GLi7M3JvfmHuXbfmYfUvKrvyBHDUMNa1faIHdyh1pG0=;
 b=oeuMdnkD9z5ET/+9EPNBVebScvE4+rcyR7jCU/5JQDoDWHqs+6zBIWGDtsRe2dv3d2
 G5+BvXxmx33yxz5MLxZQmZiOGBEcZHQoBQWkMukErfYG9n2dcV3nKgZQ6FqXDJBpRcbx
 Fbst8No6pXg9R3gGlNMzt30BJ4dDBc5wpz4RkGEUS4I0ZgUbq3p21zybdGc3xngpaRzz
 KnG7tkoPZZxSbOC+jTLINd2w0L1QEr9bX83DxxT9k8MULmtyERRZeVaZWxCNYonb3hCr
 E3K0iITGMVXT1LyqM0Uu/383u3QxGtS22qx4GUmdv887jk3OzPsRQvz//vcovDpa2f5w
 buIQ==
X-Gm-Message-State: AN3rC/5gII3goE4opidzczzPscwKmT1OCkeLF+sB0cafZQRJbggjpNP/
 yDWI0dwRRl9EnQ==
X-Received: by 10.55.109.198 with SMTP id i189mr1449429qkc.242.1492249316582; 
 Sat, 15 Apr 2017 02:41:56 -0700 (PDT)
Received: from [192.168.1.200] (static-98-118-34-152.bstnma.fios.verizon.net.
 [98.118.34.152])
 by smtp.gmail.com with ESMTPSA id q15sm2899022qtc.1.2017.04.15.02.41.55
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 15 Apr 2017 02:41:55 -0700 (PDT)
Subject: Re: bug#26104: 26.0.50; In Ubuntu, having mouse over other frame
 cause Alt key to produce a <switch-frame> event
To: martin rudalics <rudalics@HIDDEN>, 26104 <at> debbugs.gnu.org
References: <3517ed20-78a5-f7ea-7594-eeb18c95e90e@HIDDEN>
 <58CB8E1C.7080104@HIDDEN> <e0208661-658c-928c-0c5e-5f472e21304a@HIDDEN>
 <58CCED78.8050904@HIDDEN> <58DF78AB.9010603@HIDDEN>
 <1d493e40-8d0d-a393-081f-55e32bef0857@HIDDEN> <58E4958F.5040200@HIDDEN>
 <c5255932-2b02-0947-1db0-3549b015ddde@HIDDEN> <58E729FC.9050305@HIDDEN>
 <573b3947-b433-33b8-2f2a-be39ef1fd3f9@HIDDEN> <58E8A68E.70603@HIDDEN>
 <2ecfca67-9713-7a0d-7e56-b5801242f782@HIDDEN> <58E9D6B5.9020808@HIDDEN>
From: Jonathan Ganc <jonganc@HIDDEN>
Message-ID: <616065aa-d965-6038-940d-15b4e3aa2e66@HIDDEN>
Date: Sat, 15 Apr 2017 05:41:54 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <58E9D6B5.9020808@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 26104
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.5 (/)

You were right.

I found the setting that causes the issue. In CompizConfig (i.e. apt 
package compizconfig-settings-manager), go to Ubuntu Unity Plugin, and 
then, under General, disable "Key to show the menu bar while pressed". 
The problem goes away. (The irony is that I dislike the menu hiding and 
had it disabled anyway).

At the very least, if menu hiding is disabled, so should this key 
shortcut. I will let the Ubuntu people know.

Thanks for your help in tracking this down.

Jonathan


On 04/09/2017 02:37 AM, martin rudalics wrote:
> > I changed keyboard.c and rebuilt emacs. The value for
> > lispy-switch-frame-source is focus_in_event.
>
> Same here.  So I suggest you look into your window manager's focus
> policy.  It's focus follows mouse on my machine which evidently produces
> a focus-in event each time the mouse moves to another frame.
>
> martin





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26104; Package emacs. Full text available.

Message received at 26104 <at> debbugs.gnu.org:


Received: (at 26104) by debbugs.gnu.org; 9 Apr 2017 06:37:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 09 02:37:57 2017
Received: from localhost ([127.0.0.1]:38823 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cx6U0-0001Nt-SU
	for submit <at> debbugs.gnu.org; Sun, 09 Apr 2017 02:37:56 -0400
Received: from mout.gmx.net ([212.227.15.15]:50690)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1cx6Ty-0001Nd-5i
 for 26104 <at> debbugs.gnu.org; Sun, 09 Apr 2017 02:37:54 -0400
Received: from [192.168.1.100] ([213.162.68.6]) by mail.gmx.com (mrgmx002
 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MFdPZ-1ctXhP3BXZ-00Eb7x; Sun, 09
 Apr 2017 08:37:46 +0200
Message-ID: <58E9D6B5.9020808@HIDDEN>
Date: Sun, 09 Apr 2017 08:37:41 +0200
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Jonathan Ganc <jonganc@HIDDEN>, 26104 <at> debbugs.gnu.org
Subject: Re: bug#26104: 26.0.50; In Ubuntu, having mouse over other frame
 cause Alt key to produce a <switch-frame> event
References: <3517ed20-78a5-f7ea-7594-eeb18c95e90e@HIDDEN>
 <58CB8E1C.7080104@HIDDEN> <e0208661-658c-928c-0c5e-5f472e21304a@HIDDEN>
 <58CCED78.8050904@HIDDEN> <58DF78AB.9010603@HIDDEN>
 <1d493e40-8d0d-a393-081f-55e32bef0857@HIDDEN> <58E4958F.5040200@HIDDEN>
 <c5255932-2b02-0947-1db0-3549b015ddde@HIDDEN> <58E729FC.9050305@HIDDEN>
 <573b3947-b433-33b8-2f2a-be39ef1fd3f9@HIDDEN> <58E8A68E.70603@HIDDEN>
 <2ecfca67-9713-7a0d-7e56-b5801242f782@HIDDEN>
In-Reply-To: <2ecfca67-9713-7a0d-7e56-b5801242f782@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:RoyQAjcOpTrIx30YeElBeR6p/8ijHeFWHO69kkNca8qkArPG97K
 C8eXJ6ROZuzsFsLuHBeydajxf8sdAvl2mWp4y1TiJP4G8HAjrpt6wuASLxSIPzs7JLltKgA
 sCiiEKdMbj9OwQPlpy9mznPze4rwCIl6l+m6LL82X1fEDUJVJtCxEpvz8R3Ll/rp3fLD3np
 /P+bN08g8M7NIgwMpj0sA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:coxo9JYYmX0=:5K6oLmnqulEOaL/DHjZ4Mp
 E2JJPksSQjY4rs1JEalAfLv4x4Ag555b9IIvU1XeVcEYfvF4dGj4Ik5rcR3cbA6K5cKxUpO/Q
 CTQRAgP7SXDr3/lQ3RLKC8W5bfdi0Rtw4E5e1nTR2q8d2lw3Cq1y7XYRA3ZnmqyikK9BT7Yzn
 u2QYACf2NVz3ijmtHzZQfg1NgmBiVxp7GB5pvLxzTLolew/2IoPfskzvPsEB643ASIf9uSKsM
 Bq5nfhd5y90Ik6iTkMumH0/Vz+Qo3Kx4aMexoNGPDh8VdtykHsDTmMkFrPM9ma796nDBaCMaF
 vzQCC/KHt6GMJjqBzH8wtZrwXIxVqdTGBpadgOIcJ2sv9uwvqhG7xXcvrFffRO7lxFI6zpHWE
 +XXIQ5eYVqrjr1PELBvqyGU5oyRWDwbAFHPtzFKv40UjVCsfzAUWewP3IRR3w51Y1kc/gJwg4
 nv1KenBz2t77wl6WLk3Y13qU+TuGTY8wdIXGiSmsvGU/zZnx0yzZkruvh2VJ3KtfY2LLXLb9Y
 jR2Icny/0CkxLMvKdciACtWq8B/RiASX3jOKxIgKauED/C+q8d57g3HMn8jm85ZL6Ebr/mB50
 XiHFPXRa9NQpflgbDLXrZUpBdKREKmtQI7Xj99q6Wc+oVkPycasFnGCIxZrwY8xEx4U03ru7C
 zmYBGhlGgUrkD2VrkcGyZ0X8Nfa2TF6M8k8NVI3Ev8qsOUiO4CXjlyNMTeFXqcTupspim4Q3a
 8XtzbieaNLY1aCdsAggBlPAHrQZEwJiQ1TN/VOsaDzLF94UmcbswbFOBeXUI8w822/SwmhL2n
 +RMSH8d7VhwDfhOK7dKj5nNVQNQgQ==
X-Spam-Score: -2.0 (--)
X-Debbugs-Envelope-To: 26104
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.0 (--)

 > I changed keyboard.c and rebuilt emacs. The value for
 > lispy-switch-frame-source is focus_in_event.

Same here.  So I suggest you look into your window manager's focus
policy.  It's focus follows mouse on my machine which evidently produces
a focus-in event each time the mouse moves to another frame.

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26104; Package emacs. Full text available.

Message received at 26104 <at> debbugs.gnu.org:


Received: (at 26104) by debbugs.gnu.org; 8 Apr 2017 22:42:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 08 18:42:20 2017
Received: from localhost ([127.0.0.1]:38567 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cwz3j-0007ls-V0
	for submit <at> debbugs.gnu.org; Sat, 08 Apr 2017 18:42:20 -0400
Received: from mail-qt0-f179.google.com ([209.85.216.179]:35278)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jonganc@HIDDEN>) id 1cwz3i-0007lf-Am
 for 26104 <at> debbugs.gnu.org; Sat, 08 Apr 2017 18:42:18 -0400
Received: by mail-qt0-f179.google.com with SMTP id n46so8474953qta.2
 for <26104 <at> debbugs.gnu.org>; Sat, 08 Apr 2017 15:42:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:references:from:message-id:date:user-agent:mime-version
 :in-reply-to:content-transfer-encoding;
 bh=yeBNbuC6PcjUTs5pyWyFdHfni3EvXpojkIw8Py9QyeY=;
 b=kHADcXtqrs6NfnTwyFzBw9wt0uSTqVP0I2FITv3GfP8c56sFU9D+U/zbxnfrfZKaOM
 zytnvy+uJOM9NlvgWdjWPNTKpLf6C0jbynEzzq2hdikEIlQXXfSGey6NO0SQQGeVI92C
 Setb+crpfUkBcDarXK9roa5zFlifPZKHWLJvWvJ61j/3re2grnjWK/Lj306bjU77O3LY
 QmfUn3MUQW45uJL/WzfYayIbdRRZo88LAX8VM/eWAh6DZ1xjGPMUfRQzB7cS0/Bo2d8m
 W+hqLH1Nhkl3sBJo9uMwz1UuhahPOwx6vmu8vBxG0Zqoxx5pUQxuUw9Y6qP/qGioXwAM
 bt0A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-transfer-encoding;
 bh=yeBNbuC6PcjUTs5pyWyFdHfni3EvXpojkIw8Py9QyeY=;
 b=rBDsTAA5GT1XaOVcGhDN4RbAS0yUkrLgO1LAMOlBztOUADByqjkpsrPE7Jc1fmX8GP
 3f9etEzKwRUKhbLnNNmPWCUlNnx8FKY8h4C7/5yMzQQissdRyl0vedeCh0XgzRnLDN6T
 7NHqCzsRV755IQ2xRYMSVsBUrLSSciDwLd52IElreL/QG+UYree2tcvY5jjcdg2sUHaG
 gMBJXLDZ9EibX3+lNi1VO5s9drh9nNPfQfnqEO/bBBhUE0C0r4VJUs7UbUF+pJ9BfnHL
 2i0lygLRjmznFQgXFXsP0RjGzd/s7W3TfTgVEnH+wKWNO4iNaBR8kltg3Y6B4cXC3Hl2
 zIBA==
X-Gm-Message-State: AFeK/H1V7jvfRVOLCurkdKmvcovetjVwaOlJt209mGJ2LxyaD04uhNoC475yf+chXrrGgQ==
X-Received: by 10.200.41.33 with SMTP id y30mr46140701qty.47.1491691332855;
 Sat, 08 Apr 2017 15:42:12 -0700 (PDT)
Received: from [192.168.1.200] (static-98-118-34-152.bstnma.fios.verizon.net.
 [98.118.34.152])
 by smtp.gmail.com with ESMTPSA id f65sm5843888qkf.34.2017.04.08.15.42.11
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 08 Apr 2017 15:42:12 -0700 (PDT)
Subject: Re: bug#26104: 26.0.50; In Ubuntu, having mouse over other frame
 cause Alt key to produce a <switch-frame> event
To: martin rudalics <rudalics@HIDDEN>, 26104 <at> debbugs.gnu.org
References: <3517ed20-78a5-f7ea-7594-eeb18c95e90e@HIDDEN>
 <58CB8E1C.7080104@HIDDEN> <e0208661-658c-928c-0c5e-5f472e21304a@HIDDEN>
 <58CCED78.8050904@HIDDEN> <58DF78AB.9010603@HIDDEN>
 <1d493e40-8d0d-a393-081f-55e32bef0857@HIDDEN> <58E4958F.5040200@HIDDEN>
 <c5255932-2b02-0947-1db0-3549b015ddde@HIDDEN> <58E729FC.9050305@HIDDEN>
 <573b3947-b433-33b8-2f2a-be39ef1fd3f9@HIDDEN> <58E8A68E.70603@HIDDEN>
From: Jonathan Ganc <jonganc@HIDDEN>
Message-ID: <2ecfca67-9713-7a0d-7e56-b5801242f782@HIDDEN>
Date: Sat, 8 Apr 2017 18:42:11 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <58E8A68E.70603@HIDDEN>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.2 (/)
X-Debbugs-Envelope-To: 26104
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.2 (/)


On 04/08/2017 04:59 AM, martin rudalics wrote:
> And what would make you that sure that the `handle-switch-frame' event
> was not inserted before you disabled xinput?

I used both yank and then yank-pop after I disabled the xinput. But 
also, I can see that read-event gives switch-frame every time I press 
alt. But you are clearly correct in that the mouse/cursor plays an 
important role, since it only happens when the cursor is in a particular 
position.


>
> Anyway, as a first attempt try to apply the attached patch to keyboard.c
> and tell me what the value of the variable `lispy-switch-frame-source'
> is when you try your M-y.
>
> martin
I changed keyboard.c and rebuilt emacs. The value for 
lispy-switch-frame-source is focus_in_event.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26104; Package emacs. Full text available.

Message received at 26104 <at> debbugs.gnu.org:


Received: (at 26104) by debbugs.gnu.org; 8 Apr 2017 09:00:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 08 05:00:12 2017
Received: from localhost ([127.0.0.1]:37066 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cwmE7-0006nt-PH
	for submit <at> debbugs.gnu.org; Sat, 08 Apr 2017 05:00:12 -0400
Received: from mout.gmx.net ([212.227.15.19]:61624)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1cwmE5-0006mo-V5
 for 26104 <at> debbugs.gnu.org; Sat, 08 Apr 2017 05:00:10 -0400
Received: from [192.168.1.101] ([213.162.68.40]) by mail.gmx.com (mrgmx002
 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M7Yhz-1cCFPR3S23-00xNzq; Sat, 08
 Apr 2017 11:00:02 +0200
Message-ID: <58E8A68E.70603@HIDDEN>
Date: Sat, 08 Apr 2017 10:59:58 +0200
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Jonathan Ganc <jonganc@HIDDEN>, 26104 <at> debbugs.gnu.org
Subject: Re: bug#26104: 26.0.50; In Ubuntu, having mouse over other frame
 cause Alt key to produce a <switch-frame> event
References: <3517ed20-78a5-f7ea-7594-eeb18c95e90e@HIDDEN>
 <58CB8E1C.7080104@HIDDEN> <e0208661-658c-928c-0c5e-5f472e21304a@HIDDEN>
 <58CCED78.8050904@HIDDEN> <58DF78AB.9010603@HIDDEN>
 <1d493e40-8d0d-a393-081f-55e32bef0857@HIDDEN> <58E4958F.5040200@HIDDEN>
 <c5255932-2b02-0947-1db0-3549b015ddde@HIDDEN> <58E729FC.9050305@HIDDEN>
 <573b3947-b433-33b8-2f2a-be39ef1fd3f9@HIDDEN>
In-Reply-To: <573b3947-b433-33b8-2f2a-be39ef1fd3f9@HIDDEN>
Content-Type: multipart/mixed; boundary="------------070000000500050309090308"
X-Provags-ID: V03:K0:snvU3fGmOKuG+pTw/BnU6PYr9Nh+HVLoa0OsSJm9WpgSzBlrTzo
 APFQLIhicfq+gVir8zjBlcoEaeoBbXs0GckFtJuxGj9yEdSRBAx4uTdxWAMLS+8ruM04ueO
 u9OTlFnUc0atXkRNjLi1qPQC72YOuA3r5fzI5ewoCwZS5yk/cDsxmZ28U4oKJN4xcdwkBwN
 KFrcou5iQydCpeXDuT/Yg==
X-UI-Out-Filterresults: notjunk:1;V01:K0:pyTg9urAt8o=:8exn20367dodzo/DGRIzJw
 TeBP6LALDRAw4yb4KswLZi2PhiEfar2rymeaOp2lHmzG1DqM1qVrhs8UGr1Se7BNb3utnSb/p
 A78vlVze6ZEmsmzRCw0Gjj46GQ1bWrG1laWYqLvM3L/Fzbcimuplriv4AQRvquVFQRKq86ZEm
 dQlWVPErOg5xaf7Fu++xEdBG90nw/f1e/M1C3JuZz0cD3fAX4q6ZXAchR3SW8BBxUi5uoSDqU
 9Buaj3vYsxGNwGHc1uUI0T3fQqciNADMJNI3MjVXYg2Mx9ms5NVkFevnEurZrOGlbVIPZuN+z
 SKTBVAgbZeR9IbJzTR02XpiI+vuKLO5RHFMAjZtWG4aIYWrO8OIXJBdBo9SHqjoBzhhf/DIyK
 +uUYnGkXAw4gHRLB5iASriNyboxAu2kAYJBlPrNBVw5nZ0MXCTK0Rt8jV8KqHAu5lDq7rrawf
 AUAgr8UxdNz4RC54zgwOajknZDtV9l46awaXOv7bzf3AQChbgRI1TPdN9Akdloba9cAertlHN
 16UKmnb5lpt7x3u9h4u0N+jAUaifme3sQGxsVvs7bTPZ4f22mv3cDuNDj9w72YGUl6inqQB7n
 u+i9TATDhPTglj9bJdjnvFJpVBxDVg0lFRm5c1AnvSzE7Osp3lKdZOMwvOMWPFUWnmCNzr3D3
 pM/GRaFk3o+TTHYvfQKLXyRSnmeG2Cqdv/Qp21W+aUunasWWFCbaM2vW+6tHxC4dtdrdE6Giw
 nwpO33AgT2Gn4syzSY5urm00SDeiAzBMNUe8ZDIEFFqKbH0oFco+JOoedKiz3PI8wFaQ4Fj5B
 Xa1CKpZ
X-Spam-Score: -2.0 (--)
X-Debbugs-Envelope-To: 26104
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.0 (--)

This is a multi-part message in MIME format.
--------------070000000500050309090308
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

 > Magical incantations! ;-) I positioned it and then used `xinput
 > disable ID` for both my mouse and trackpad.

And what would make you that sure that the `handle-switch-frame' event
was not inserted before you disabled xinput?

Anyway, as a first attempt try to apply the attached patch to keyboard.c
and tell me what the value of the variable `lispy-switch-frame-source'
is when you try your M-y.

martin

--------------070000000500050309090308
Content-Type: text/plain; charset=windows-1252;
 name="keyboard.c.diff"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="keyboard.c.diff"

ZGlmZiAtLWdpdCBhL3NyYy9rZXlib2FyZC5jIGIvc3JjL2tleWJvYXJkLmMKaW5kZXggM2U1
MDE0Mi4uZjNhOWRjZiAxMDA2NDQKLS0tIGEvc3JjL2tleWJvYXJkLmMKKysrIGIvc3JjL2tl
eWJvYXJkLmMKQEAgLTM0ODEsNiArMzQ4MSw3IEBAIHN0YXRpYyBMaXNwX09iamVjdCBrYmRf
YnVmZmVyX2dldF9ldmVudCAoS0JPQVJEICoqa2JwLCBib29sICp1c2VkX21vdXNlX21lbnUs
CgogCSAgaWYgKHNpbmdsZV9rYm9hcmQgJiYga2IgIT0gY3VycmVudF9rYm9hcmQpCiAJICAg
IHsKKwkgICAgICBWbGlzcHlfc3dpdGNoX2ZyYW1lX3NvdXJjZSA9IFFrYmRfYnVmZmVyX3N0
b3JlX2J1ZmZlcmVkX2V2ZW50OwogCSAgICAgIGtzZXRfa2JkX3F1ZXVlCiAJCShrYiwgbGlz
dDIgKG1ha2VfbGlzcHlfc3dpdGNoX2ZyYW1lIChldmVudC0+aWUuZnJhbWVfb3Jfd2luZG93
KSwKIAkJCSAgICBtYWtlX251bWJlciAoYykpKTsKQEAgLTQwMjQsNyArNDAyNSwxMCBAQCBz
dGF0aWMgTGlzcF9PYmplY3Qga2JkX2J1ZmZlcl9nZXRfZXZlbnQgKEtCT0FSRCAqKmticCwg
Ym9vbCAqdXNlZF9tb3VzZV9tZW51LAogI2VuZGlmCiAgICAgICAgICAgICAgICFFUSAoZnJh
bWUsIGludGVybmFsX2xhc3RfZXZlbnRfZnJhbWUpCiAgICAgICAgICAgICAgICYmICFFUSAo
ZnJhbWUsIHNlbGVjdGVkX2ZyYW1lKSkKLSAgICAgICAgICAgIG9iaiA9IG1ha2VfbGlzcHlf
c3dpdGNoX2ZyYW1lIChmcmFtZSk7CisJICAgIHsKKwkgICAgICBWbGlzcHlfc3dpdGNoX2Zy
YW1lX3NvdXJjZSA9IFFmb2N1c19pbl9ldmVudDsKKwkgICAgICBvYmogPSBtYWtlX2xpc3B5
X3N3aXRjaF9mcmFtZSAoZnJhbWUpOworCSAgICB9CiAgICAgICAgICAgZWxzZQogICAgICAg
ICAgICAgb2JqID0gbWFrZV9saXNweV9mb2N1c19pbiAoZnJhbWUpOwoKQEAgLTQxMDAsNyAr
NDEwNCwxMCBAQCBzdGF0aWMgTGlzcF9PYmplY3Qga2JkX2J1ZmZlcl9nZXRfZXZlbnQgKEtC
T0FSRCAqKmticCwgYm9vbCAqdXNlZF9tb3VzZV9tZW51LAoKIAkgIGlmICghIEVRIChmcmFt
ZSwgaW50ZXJuYWxfbGFzdF9ldmVudF9mcmFtZSkKIAkgICAgICAmJiAhRVEgKGZyYW1lLCBz
ZWxlY3RlZF9mcmFtZSkpCi0JICAgIG9iaiA9IG1ha2VfbGlzcHlfc3dpdGNoX2ZyYW1lIChm
cmFtZSk7CisJICAgIHsKKwkgICAgICBWbGlzcHlfc3dpdGNoX2ZyYW1lX3NvdXJjZSA9IFFk
aWZmZXJlbnRfZnJhbWU7CisJICAgICAgb2JqID0gbWFrZV9saXNweV9zd2l0Y2hfZnJhbWUg
KGZyYW1lKTsKKwkgICAgfQogCSAgaW50ZXJuYWxfbGFzdF9ldmVudF9mcmFtZSA9IGZyYW1l
OwoKIAkgIC8qIElmIHdlIGRpZG4ndCBkZWNpZGUgdG8gbWFrZSBhIHN3aXRjaC1mcmFtZSBl
dmVudCwgZ28gYWhlYWQKQEAgLTQxNzEsNyArNDE3OCwxMCBAQCBzdGF0aWMgTGlzcF9PYmpl
Y3Qga2JkX2J1ZmZlcl9nZXRfZXZlbnQgKEtCT0FSRCAqKmticCwgYm9vbCAqdXNlZF9tb3Vz
ZV9tZW51LAoKIAkgIGlmICghIEVRIChmcmFtZSwgaW50ZXJuYWxfbGFzdF9ldmVudF9mcmFt
ZSkKIAkgICAgICAmJiAhRVEgKGZyYW1lLCBzZWxlY3RlZF9mcmFtZSkpCi0JICAgIG9iaiA9
IG1ha2VfbGlzcHlfc3dpdGNoX2ZyYW1lIChmcmFtZSk7CisJICAgIHsKKwkgICAgICBWbGlz
cHlfc3dpdGNoX2ZyYW1lX3NvdXJjZSA9IFFtb3VzZV90cmFjazsKKwkgICAgICBvYmogPSBt
YWtlX2xpc3B5X3N3aXRjaF9mcmFtZSAoZnJhbWUpOworCSAgICB9CiAJICBpbnRlcm5hbF9s
YXN0X2V2ZW50X2ZyYW1lID0gZnJhbWU7CiAJfQoKQEAgLTkxNjksNiArOTE3OSw3IEBAIHN0
YXRpYyB2b2lkIHByb2Nlc3NfdG9vbF9iYXJfaXRlbSAoTGlzcF9PYmplY3QsIExpc3BfT2Jq
ZWN0LCBMaXNwX09iamVjdCwKIAkJICB7CiAJCSAgICBMaXNwX09iamVjdCBmcmFtZTsKIAkJ
ICAgIFhTRVRGUkFNRSAoZnJhbWUsIGludGVycnVwdGVkX2ZyYW1lKTsKKwkJICAgIFZsaXNw
eV9zd2l0Y2hfZnJhbWVfc291cmNlID0gUXJlYWRfa2V5X3NlcXVlbmNlOwogCQkgICAga3Nl
dF9rYmRfcXVldWUKIAkJICAgICAgKGludGVycnVwdGVkX2tib2FyZCwKIAkJICAgICAgIEZj
b25zIChtYWtlX2xpc3B5X3N3aXRjaF9mcmFtZSAoZnJhbWUpLApAQCAtMTA0OTgsOSArMTA1
MDksMTEgQEAgc2hvd3MgdGhlIGV2ZW50cyBiZWZvcmUgYWxsIHRyYW5zbGF0aW9ucyAoZXhj
ZXB0IGZvciBpbnB1dCBtZXRob2RzKS4KCiAgIGlmIChGUkFNRVAgKGludGVybmFsX2xhc3Rf
ZXZlbnRfZnJhbWUpCiAgICAgICAmJiAhRVEgKGludGVybmFsX2xhc3RfZXZlbnRfZnJhbWUs
IHNlbGVjdGVkX2ZyYW1lKSkKLSAgICBkb19zd2l0Y2hfZnJhbWUgKG1ha2VfbGlzcHlfc3dp
dGNoX2ZyYW1lIChpbnRlcm5hbF9sYXN0X2V2ZW50X2ZyYW1lKSwKKyAgICB7CisgICAgICBW
bGlzcHlfc3dpdGNoX2ZyYW1lX3NvdXJjZSA9IFFxdWl0X3Rocm93X3RvX3JlYWRfY2hhcjsK
KyAgICAgIGRvX3N3aXRjaF9mcmFtZSAobWFrZV9saXNweV9zd2l0Y2hfZnJhbWUgKGludGVy
bmFsX2xhc3RfZXZlbnRfZnJhbWUpLAogCQkgICAgIDAsIDAsIFFuaWwpOwotCisgICAgfQog
ICBzeXNfbG9uZ2ptcCAoZ2V0Y2ptcCwgMSk7CiB9CiAMCkBAIC0xMTI0Miw2ICsxMTI1NSwx
MyBAQCBzdHJ1Y3QgZXZlbnRfaGVhZAogICBoZWxwX2Zvcm1fc2F2ZWRfd2luZG93X2NvbmZp
Z3MgPSBRbmlsOwogICBzdGF0aWNwcm8gKCZoZWxwX2Zvcm1fc2F2ZWRfd2luZG93X2NvbmZp
Z3MpOwoKKyAgREVGU1lNIChRa2JkX2J1ZmZlcl9zdG9yZV9idWZmZXJlZF9ldmVudCwgImti
ZF9idWZmZXJfc3RvcmVfYnVmZmVyZWRfZXZlbnQiKTsKKyAgREVGU1lNIChRZm9jdXNfaW5f
ZXZlbnQsICJmb2N1c19pbl9ldmVudCIpOworICBERUZTWU0gKFFkaWZmZXJlbnRfZnJhbWUs
ICJkaWZmZXJlbnRfZnJhbWUiKTsKKyAgREVGU1lNIChRbW91c2VfdHJhY2ssICJtb3VzZV90
cmFjayIpOworICBERUZTWU0gKFFyZWFkX2tleV9zZXF1ZW5jZSwgInJlYWRfa2V5X3NlcXVl
bmNlIik7CisgIERFRlNZTSAoUXF1aXRfdGhyb3dfdG9fcmVhZF9jaGFyLCAicXVpdF90aHJv
d190b19yZWFkX2NoYXIiKTsKKwogICBkZWZzdWJyICgmU2N1cnJlbnRfaWRsZV90aW1lKTsK
ICAgZGVmc3ViciAoJlNldmVudF9zeW1ib2xfcGFyc2VfbW9kaWZpZXJzKTsKICAgZGVmc3Vi
ciAoJlNldmVudF9jb252ZXJ0X2xpc3QpOwpAQCAtMTE4MzMsNiArMTE4NTMsMTEgQEAgc2h1
dGRvd24gd2hlbiBFbWFjcyByZWNlaXZlcyBhIGZhdGFsIHNpZ25hbCAoZS5nLiwgYSBjcmFz
aCkuCiAgICAgICAgICAgICAgICBWd2hpbGVfbm9faW5wdXRfaWdub3JlX2V2ZW50cywKICAg
ICAgICAgICAgICAgIGRvYzogLyogSWdub3JlZCBldmVudHMgZnJvbSB3aGlsZS1uby1pbnB1
dC4gICovKTsKICAgVndoaWxlX25vX2lucHV0X2lnbm9yZV9ldmVudHMgPSBRbmlsOworCisg
IERFRlZBUl9MSVNQICgibGlzcHktc3dpdGNoLWZyYW1lLXNvdXJjZSIsCisgICAgICAgICAg
ICAgICBWbGlzcHlfc3dpdGNoX2ZyYW1lX3NvdXJjZSwKKyAgICAgICAgICAgICAgIGRvYzog
LyogU291cmNlIG9mIGxhc3QgbGlzcHktc3dpdGNoLWZyYW1lIGV2ZW50LiAgKi8pOworICBW
bGlzcHlfc3dpdGNoX2ZyYW1lX3NvdXJjZSA9IFFuaWw7CiB9Cgogdm9pZAo=
--------------070000000500050309090308--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26104; Package emacs. Full text available.

Message received at 26104 <at> debbugs.gnu.org:


Received: (at 26104) by debbugs.gnu.org; 7 Apr 2017 15:27:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 07 11:27:47 2017
Received: from localhost ([127.0.0.1]:36701 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cwVnf-0001nu-95
	for submit <at> debbugs.gnu.org; Fri, 07 Apr 2017 11:27:47 -0400
Received: from mail-qk0-f179.google.com ([209.85.220.179]:33029)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jonganc@HIDDEN>) id 1cwVnd-0001nh-Bd
 for 26104 <at> debbugs.gnu.org; Fri, 07 Apr 2017 11:27:45 -0400
Received: by mail-qk0-f179.google.com with SMTP id h67so65906857qke.0
 for <26104 <at> debbugs.gnu.org>; Fri, 07 Apr 2017 08:27:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:references:from:message-id:date:user-agent:mime-version
 :in-reply-to:content-transfer-encoding;
 bh=acu7IEYfPRJTy00Y5/h5B9LjGYyeRVZztVwnL7lCDpM=;
 b=WLazz6dj4geYHGUZvXdn63HAv+SwWos7sFKTWlNF7pFnzEEYWhJUy2HsDRoVInOnW/
 NZf/55M9K6ZEDY/UKLlba/gVpxjkPTxN5VBGZsH2yfgNh6G1SScJ6u4AJxuwBh3ktlHH
 kBEaMQebSk/G3UGeDJIrhUzNt3RQimpUtKsSEat0b5+IhagvzpyMvIuiZlYKJqrFEU+M
 9i78AqA5HQPQNUsoYQS/f4sJJYvNLWPiUTVN94APJhLc2h6ace6q8SRygrUNQ5Da0UZU
 rPY4wLJaA3r8pV+ql+t+94M2AN7Boqhn8W2w2LSpG2WaSJK6oMJOETK26TuY0lJqpqZ0
 O1lQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-transfer-encoding;
 bh=acu7IEYfPRJTy00Y5/h5B9LjGYyeRVZztVwnL7lCDpM=;
 b=W+GmuCIqHpI6aDaZfnc3MjE9MgMFJIj5C7JYBYmM4twVig6VNCDuTeVtvzcZHU8vzV
 ki4N7VMe+q/8vXurSDoKV+hW6gO32uRYQ1OgZCuPityzwR+Tfx92IiNH5/bbuBZ8Gecz
 AksxyoNejVMRhppM9l7WIkxlByJdonmTpFFZFGDGfZhvNm3AIKLq++yjbT8sbil1t3iC
 XZ7zKhcLYvKRX6wTIPWmcmYnU8xuH8P/qwA237Gn6TXflHtpFt3h3ph/JuwOeSqXbdtY
 hAcafMnuIbVaUUjPMaPvDxvHiK1U8DNazXWrXfVIa56MMrlZVLWYjztE9I19QfvdGNgs
 rspw==
X-Gm-Message-State: AFeK/H2U722S9wjbDVovoMdiwwA4bD3NFXf+xrfUXKdBkyKWGuQCtjyvCLwgkt0/6+tZQw==
X-Received: by 10.55.167.17 with SMTP id q17mr26317916qke.193.1491578859873;
 Fri, 07 Apr 2017 08:27:39 -0700 (PDT)
Received: from [10.1.10.171] (c-65-96-175-120.hsd1.ma.comcast.net.
 [65.96.175.120])
 by smtp.gmail.com with ESMTPSA id z4sm3219225qkc.68.2017.04.07.08.27.39
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Fri, 07 Apr 2017 08:27:39 -0700 (PDT)
Subject: Re: bug#26104: 26.0.50; In Ubuntu, having mouse over other frame
 cause Alt key to produce a <switch-frame> event
To: martin rudalics <rudalics@HIDDEN>, 26104 <at> debbugs.gnu.org
References: <3517ed20-78a5-f7ea-7594-eeb18c95e90e@HIDDEN>
 <58CB8E1C.7080104@HIDDEN> <e0208661-658c-928c-0c5e-5f472e21304a@HIDDEN>
 <58CCED78.8050904@HIDDEN> <58DF78AB.9010603@HIDDEN>
 <1d493e40-8d0d-a393-081f-55e32bef0857@HIDDEN> <58E4958F.5040200@HIDDEN>
 <c5255932-2b02-0947-1db0-3549b015ddde@HIDDEN> <58E729FC.9050305@HIDDEN>
From: Jonathan Ganc <jonganc@HIDDEN>
Message-ID: <573b3947-b433-33b8-2f2a-be39ef1fd3f9@HIDDEN>
Date: Fri, 7 Apr 2017 11:27:38 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <58E729FC.9050305@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 26104
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.5 (/)

> and now you say that "the event is still generated even if I disable
> both my mouse and trackpad".  How can you position the mouse when you
> disable it?
>
> martin

Magical incantations! ;-) I positioned it and then used `xinput disable 
ID` for both my mouse and trackpad.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26104; Package emacs. Full text available.

Message received at 26104 <at> debbugs.gnu.org:


Received: (at 26104) by debbugs.gnu.org; 7 Apr 2017 05:56:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 07 01:56:24 2017
Received: from localhost ([127.0.0.1]:35661 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cwMsi-00031S-Gr
	for submit <at> debbugs.gnu.org; Fri, 07 Apr 2017 01:56:24 -0400
Received: from mout.gmx.net ([212.227.17.22]:55516)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1cwMsg-00031F-FG
 for 26104 <at> debbugs.gnu.org; Fri, 07 Apr 2017 01:56:23 -0400
Received: from [192.168.1.100] ([213.162.68.119]) by mail.gmx.com (mrgmx103
 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lt1yI-1byaPd0b1O-012VZ0; Fri, 07
 Apr 2017 07:56:15 +0200
Message-ID: <58E729FC.9050305@HIDDEN>
Date: Fri, 07 Apr 2017 07:56:12 +0200
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Jonathan Ganc <jonganc@HIDDEN>, 26104 <at> debbugs.gnu.org
Subject: Re: bug#26104: 26.0.50; In Ubuntu, having mouse over other frame
 cause Alt key to produce a <switch-frame> event
References: <3517ed20-78a5-f7ea-7594-eeb18c95e90e@HIDDEN>
 <58CB8E1C.7080104@HIDDEN> <e0208661-658c-928c-0c5e-5f472e21304a@HIDDEN>
 <58CCED78.8050904@HIDDEN> <58DF78AB.9010603@HIDDEN>
 <1d493e40-8d0d-a393-081f-55e32bef0857@HIDDEN> <58E4958F.5040200@HIDDEN>
 <c5255932-2b02-0947-1db0-3549b015ddde@HIDDEN>
In-Reply-To: <c5255932-2b02-0947-1db0-3549b015ddde@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:CysMpPhFIhekwUjGQIi6b31HyF4pJ2dxYiV9q/Qv6Pee3jEqLuq
 Tix4ZWe2tsKbxhRKZyzh52iD1x3UKS7e0xLlF5F20E2HjsVSsp9tOYWmJkg/8+/2qGF4Tg0
 id5xkBn2EHlPtQBMfMH2xMJ7aH5m7k4QO3z3DLPgiDFvXgot1AzcnK3uyE4WuhkITJnzqA+
 Uv5g6Md9LSMAr/WAWO8Dw==
X-UI-Out-Filterresults: notjunk:1;V01:K0:9W+nf46wGzo=:gbS+hRpE/RiXvYjR6Xj9FF
 Cjutp0uKXuJggi41eZCzDAvSn0EpiY2Ilf/rLZ6ZY0BuKvOZ6htm1PsrytS0zsOg7xgzYGiMQ
 fXzkPmcU1JOaymv9u549LDzbH0nOWM+1lGui0pcAGL6cIKeoJR9DElc4kfww+5MebfQKxx/FX
 mUu1Of5uEG3maU2olighjHT2tB3l1vX+jPpkn5jkBK2Z5Xt9pGvz6umxh74H6pYuij1a2ol9S
 ZljSiNaCBSleGXfxyp1y6RYYL6t9WkI2m9j3J0W/7oQxIBQz/2dxrjKsZPU9aY4XNiwwCoKv8
 O1aVp6j/WgyBTuJeA2QE+VDE/2CqZGCNKa+0Zp+mbh3OtyNY+2ni244uJjg1JwZy5K/+uqV6X
 VJTUPQn3fH1Yu1kpKs96tVuq4ff7nNtPbVbLiod+jMDTjcDFVMUbi6mquiGTsiAZicz3cfa22
 +gM6PltxyIjgcG6Vip2IkXwgl4J53ZZLzaTE8A3cu3OU1Ramp8AdRO2sTrdgFtBaaL4WAT0ea
 B35oDAxHvEHLZriHPhZ/wXC5jsNABoqUpcKvmjIzmMkaFtqyMMjM3Uw7BOsulOCNy/W77+cAn
 svDSBwm3PNgh3QSDo/ot2xQK2BrRkpYa+EeNpLWWkjMWIVex+HATVnx96gIdPUSXKDzBCws52
 EnW9CsctSGpxP/FrnbJK2rmEdgsMaKmNylGGJwZGqZw/Dr/CshkQsdItjwINOAGZQE94MnLBu
 lb6VMyOu7ExNViJBMgmOWa3Sj73laM/elt+83kVpA+pYvdQL7RS6okfjvUXLsUWgp86kAfPG/
 zMOhGftqzLRK9Br2FmSykXeWuSPMQ==
X-Spam-Score: -2.0 (--)
X-Debbugs-Envelope-To: 26104
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.0 (--)

 > switch-frame is produced when the Alt key is pressed (as soon as it is
 > pressed, i.e. before the 'Y' is pressed). i can verify this by running
 > 'read-event`, which triggers and produces switch-frame as soon as Alt
 > is pressed. Conversely, the event is still generated even if I disable
 > both my mouse and trackpad, the only things which can produce mouse
 > motion.

Sorry for the silly question: Earlier you said that

   In Ubuntu, if I have two frames open and the mouse is positioned over
   the other frame (i.e. not over the active one), pressing the Alt key
   produces a <switch-frame> event.

and now you say that "the event is still generated even if I disable
both my mouse and trackpad".  How can you position the mouse when you
disable it?

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26104; Package emacs. Full text available.

Message received at 26104 <at> debbugs.gnu.org:


Received: (at 26104) by debbugs.gnu.org; 7 Apr 2017 03:56:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 06 23:56:22 2017
Received: from localhost ([127.0.0.1]:35643 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cwL0X-0008Q0-TI
	for submit <at> debbugs.gnu.org; Thu, 06 Apr 2017 23:56:22 -0400
Received: from mail-qt0-f178.google.com ([209.85.216.178]:34504)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jonganc@HIDDEN>) id 1cwL0V-0008Pm-GL
 for 26104 <at> debbugs.gnu.org; Thu, 06 Apr 2017 23:56:19 -0400
Received: by mail-qt0-f178.google.com with SMTP id c45so10469645qtb.1
 for <26104 <at> debbugs.gnu.org>; Thu, 06 Apr 2017 20:56:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:references:from:message-id:date:user-agent:mime-version
 :in-reply-to:content-transfer-encoding;
 bh=ipqcvOsq6CJbrmu2B1XfzKr7ADGmpJttfNbNrU3xLd8=;
 b=AEYA5vUAKvnwZuJFenLCiLt6NlPBUIuuXPgw4O3eeJ5/8eHBccvEHpPiMsQw/kIGBG
 m1e/hq40PoxnrEhu/zDCt0eeb6w889BEnjEDOBxQWIGHwGK0QplUBNbSL0I+He4XrR2/
 KmaiTBfjW2E3WGMO8g/8+s4WGw66OjdipguuuWDA5wAWdIXFt4M1V27C0sLlYM39DJ7W
 9O5kDjY9Grwje6ty76RgOXm02fsA2M/DKMXUHzil3vHZ5zh6v3D+x6elj01laXS+Ee6O
 VunGsfcWySzHEuN5TlxTEBokmUGTOyQnvPYpM2M2PrhGe0ipAiK4DoZ1V9lqygrLWKcc
 9LIA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-transfer-encoding;
 bh=ipqcvOsq6CJbrmu2B1XfzKr7ADGmpJttfNbNrU3xLd8=;
 b=IFmoWukk39A8EwOZrd2RayTmXINesgO6eHdjp9RzY4p/fFGqqJxPXyOX0nSMLK4tFd
 tFrtkvBi35n89IYmKs1f9UywDGcDU/a5WQs7zydzAqVf8cVxSjaX8KbwEG69Onsrezbr
 Mr0/8qBobdufD0sh5FTi2+EMFFSy9Oh/iHcBk+s306iuQ2BMp2PJKtOhvVMdjPC6aFJt
 2x+VZMeXxiOknAnZXQbW1yHoVJweCl12lK7gQ6SR9CFfyIxWSFWhVg3OqQ5Qeg4kSv15
 N49szRpuAg+5dKUT+PIjVdgqY/1wdMLw6LzlSKG/ZF3oF0R1l538yk/SFAlq3w1v5BFB
 oa1Q==
X-Gm-Message-State: AFeK/H1ZNYBU3KwgdIwM2o7HS8Jba2BGyFNchYUGiTBukBCBO83BOpFgbDLQphqT0c5BpQ==
X-Received: by 10.200.55.57 with SMTP id o54mr41756148qtb.78.1491537373779;
 Thu, 06 Apr 2017 20:56:13 -0700 (PDT)
Received: from [192.168.1.198] (static-98-118-34-152.bstnma.fios.verizon.net.
 [98.118.34.152])
 by smtp.gmail.com with ESMTPSA id 1sm2309325qty.69.2017.04.06.20.56.12
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Thu, 06 Apr 2017 20:56:13 -0700 (PDT)
Subject: Re: bug#26104: 26.0.50; In Ubuntu, having mouse over other frame
 cause Alt key to produce a <switch-frame> event
To: martin rudalics <rudalics@HIDDEN>, 26104 <at> debbugs.gnu.org
References: <3517ed20-78a5-f7ea-7594-eeb18c95e90e@HIDDEN>
 <58CB8E1C.7080104@HIDDEN> <e0208661-658c-928c-0c5e-5f472e21304a@HIDDEN>
 <58CCED78.8050904@HIDDEN> <58DF78AB.9010603@HIDDEN>
 <1d493e40-8d0d-a393-081f-55e32bef0857@HIDDEN> <58E4958F.5040200@HIDDEN>
From: Jonathan Ganc <jonganc@HIDDEN>
Message-ID: <c5255932-2b02-0947-1db0-3549b015ddde@HIDDEN>
Date: Thu, 6 Apr 2017 23:56:11 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <58E4958F.5040200@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.2 (/)
X-Debbugs-Envelope-To: 26104
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.2 (/)

On 04/05/2017 02:58 AM, martin rudalics wrote:
>
> ‘yank-pop’ by itself does not query the mouse position so "pressing the
> Alt key produces a <switch-frame> event" as you said earlier does not
> describe what really happens.  Someone else must have changed
> `last-command' to `switch-frame' and it would be essential to find out
> who.  And, as a furthe clue, the event must have come from a mouse move
> since according to "the mouse is positioned over the other frame" this
> is the only thing you do in between ‘yank’ and ‘yank-pop’ and if you do
> not move the mouse in between them the M-y succeeds.  Or am I missing
> something?

switch-frame is produced when the Alt key is pressed (as soon as it is 
pressed, i.e. before the 'Y' is pressed). i can verify this by running 
'read-event`, which triggers and produces switch-frame as soon as Alt is 
pressed. Conversely, the event is still generated even if I disable both 
my mouse and trackpad, the only things which can produce mouse motion.

>
> If the above approach is inusfficient we indeed might have to add some
> extra code to make_lispy_switch_frame in order to find out what happens.
> In that case you have to be able to build Emacs on your machine.
>

I'm not averse to rebuilding emacs (I built the current version I'm 
using), if it could help.

I was trying to explore emacs input. One thing I've realized is that xev 
(i.e. if I monitor emacs using 'xev -id ...') does not see most keys 
(e.g. alphanumeric keys, Ctrl, shift) sent to emacs but it does see when 
Alt (or the Windows key) is pressed. So some keys are "special". I wish 
I knew about how emacs set this up.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26104; Package emacs. Full text available.

Message received at 26104 <at> debbugs.gnu.org:


Received: (at 26104) by debbugs.gnu.org; 5 Apr 2017 06:58:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 05 02:58:43 2017
Received: from localhost ([127.0.0.1]:33133 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cvetv-00021n-1L
	for submit <at> debbugs.gnu.org; Wed, 05 Apr 2017 02:58:43 -0400
Received: from mout.gmx.net ([212.227.17.20]:60380)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1cvett-00021X-2u
 for 26104 <at> debbugs.gnu.org; Wed, 05 Apr 2017 02:58:41 -0400
Received: from [192.168.1.102] ([213.162.68.14]) by mail.gmx.com (mrgmx102
 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LaJWs-1cFDLb1DMk-00m3Ec; Wed, 05
 Apr 2017 08:58:33 +0200
Message-ID: <58E4958F.5040200@HIDDEN>
Date: Wed, 05 Apr 2017 08:58:23 +0200
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Jonathan Ganc <jonganc@HIDDEN>, 26104 <at> debbugs.gnu.org
Subject: Re: bug#26104: 26.0.50; In Ubuntu, having mouse over other frame
 cause Alt key to produce a <switch-frame> event
References: <3517ed20-78a5-f7ea-7594-eeb18c95e90e@HIDDEN>
 <58CB8E1C.7080104@HIDDEN> <e0208661-658c-928c-0c5e-5f472e21304a@HIDDEN>
 <58CCED78.8050904@HIDDEN> <58DF78AB.9010603@HIDDEN>
 <1d493e40-8d0d-a393-081f-55e32bef0857@HIDDEN>
In-Reply-To: <1d493e40-8d0d-a393-081f-55e32bef0857@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K0:7L3ui1QxdkmFByPX1AUYNQy36bheWpUr2S83n2FQV3zixqCIla5
 WbUQ6jRY636SkJC8IxLQSdTUdns4cH/0WWXRUc3aGqjMywaS72Ngj6SJJ2hUchjQ6tEuTsD
 0R4Rd92RVSTGI5E2cT3jBlbjShuM5jGl9F/gnbtfV9B+lpLddl5GAYyP4Ti4YJM8nEYCCl/
 nMGojdqZzGAYEnN4O264A==
X-UI-Out-Filterresults: notjunk:1;V01:K0:jViRdou8dF4=:bKy15G7S3L8SD3p3IK5gko
 svcK+4KDf15ZndTczjFXfghaTQTVlDvykk4z2tYlPREPozxvaIW4eR3Z19LJn2eYGLHTWgxho
 AzCKIOag3hqjFuu69HS8J8/gHWZEQpOJ+z4ej2SWRdqVEOnG29ZzNueNlU+ibWYE48MaV3X7E
 /AdTTyYpDi6hC8dulOwIZpDz+I/RXSBtsC0g7MApkPiWpPJQpizeVioBKDr5o0dTVAWSRauav
 qLAdu88yc2veAX0o8nsFLWXwnpP+TNp5xv+evLg3fYtXz/GYbLeqfx8AHf9NLq07/XocWuIn3
 SUcMmdsbPK/bLMdLYb+TwKVIEmWJRuil9BRYvrZO3XH0pqHNlInKZACHzUT8djqJW5rQlO3XY
 dOMvSghXnNJIKk9k1Y1AfWcT3NQqcnNGAVK1LoRfcTSo+Vxle8iuDo34RQmxUFMalt1AE8zUF
 hpEdCYt1Y4bb+2Y4nLJLCWJlplqO4SChwUQVrAShEoKWYKgtyF0Moe2Z0f6N8WyMB869PDnJj
 XSV1re/IGNd86ev3g7nDwvK8Gn1kLd6yh+jZid/XCrQ+ZQfunH4gWjcaunG3vpFtprVEzu7tl
 N13Alijy1DPzjTA2IB/rtLQz1DJmsa4jLjPQ58SSr9KiZ84kq9ngv29D1Xi/lwyLJLz5ZvM2w
 BzyV08Z+6fVOrM+ksSQn+Zn6HiFi0I5bKYfdAVTCo604vbbrYKXZzjcMHRsM8Sgn+g67+cYI+
 5+2AfuR0jfbUUWixD92GusrZ1S/TWCVUqIy9ZzLFudpux+ILWxCzW5FxbFu94tqyeiRZc4IFg
 45OMf78hFX7lY+sXhySwuoYb4ij3g==
X-Spam-Score: -2.0 (--)
X-Debbugs-Envelope-To: 26104
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.0 (--)

 > It should be noted that I don't know that actually moving the mouse
 > plays a role here. As long as the mouse cursor is over the other
 > frame, the issue happens, even if I don't actually move it. Setting
 > track-mouse doesn't make a difference.

=E2=80=98yank-pop=E2=80=99 by itself does not query the mouse position so=
 "pressing the
Alt key produces a <switch-frame> event" as you said earlier does not
describe what really happens.  Someone else must have changed
`last-command' to `switch-frame' and it would be essential to find out
who.  And, as a furthe clue, the event must have come from a mouse move
since according to "the mouse is positioned over the other frame" this
is the only thing you do in between =E2=80=98yank=E2=80=99 and =E2=80=98y=
ank-pop=E2=80=99 and if you do
not move the mouse in between them the M-y succeeds.  Or am I missing
something?

Now a frame switch triggered by mouse movement can only occur on
behalf of two underlying processes:

(1) The "window system" when tracking the mouse pointer tells us that it
     has crossed an edge from (focus-out-hook, mouse-leave-buffer-hook)
     or to (focus-in-hook) one of our window system windows.

(2) Emacs itself is tracking the mouse via `track-mouse' or something
     the like.

As for (1) I mentioned these hooks because they would allow you to put a
function on them in order to track what triggers your `switch-frame'
event.  As for (2) you would have to find all users/callers of
`track-mouse', inject some extra code in it to track its use and
recompile/reevaluate the users.

Simple put some code there that beeps like

(add-hook 'focus-in-hook 'ding)

and look what's happening.

All this would enable you to find out who generates a switch-frame event
although your mouse movements were apparently innocuous enough to never
motivate such an insertion.  If and when you find out the reason of that
insertion, we might be able to try to (optionally) prevent it.

 > I think trying to figure out where the switch-frame actually gets
 > triggered is a good idea. It looks like I'm going to have to try doing=

 > some serious spelunking (at least for me)! As I think you suggest, I
 > want to try to figure out what is getting sent by xwindows vs what is
 > being generated by emacs itself.

If the above approach is inusfficient we indeed might have to add some
extra code to make_lispy_switch_frame in order to find out what happens.
In that case you have to be able to build Emacs on your machine.

martin





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26104; Package emacs. Full text available.

Message received at 26104 <at> debbugs.gnu.org:


Received: (at 26104) by debbugs.gnu.org; 4 Apr 2017 00:59:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 03 20:59:52 2017
Received: from localhost ([127.0.0.1]:59652 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cvCp6-0007zY-6r
	for submit <at> debbugs.gnu.org; Mon, 03 Apr 2017 20:59:52 -0400
Received: from mail-qk0-f174.google.com ([209.85.220.174]:36748)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jonganc@HIDDEN>) id 1cvCp5-0007zM-DY
 for 26104 <at> debbugs.gnu.org; Mon, 03 Apr 2017 20:59:51 -0400
Received: by mail-qk0-f174.google.com with SMTP id p22so129588513qka.3
 for <26104 <at> debbugs.gnu.org>; Mon, 03 Apr 2017 17:59:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:references:from:message-id:date:user-agent:mime-version
 :in-reply-to:content-transfer-encoding;
 bh=x/sJ3l95il+r989GfrZIIkujh2pnHGyOplfEVcF5FwU=;
 b=SMLF17rPa1wM+7mM8yE0wR1RBBFyVxbnP3tHTTI+DBliXNxv6JVNkmsjc+KIcWmCBm
 W3VJNySJzqT9LPPskYc9FYscGpUKyCKYjPPCBwWt+/9zMYaYUvk4DmsF442zf8LOwXxE
 1UAbktrRVG37bugPscNoDyB3ViHufb/vC7li7V5X3mCwB17eRksBlRcZReGHK/oPPRdJ
 So8hCxjV9yihSCRH8AA7hK++PVeBF38/gcoe34VXzDhNiTt21SWrwLacSczO+QuwkU6c
 UHAlA3alG/rxsVDMe7HVFbG+duNPL6La35T3xvdu+wsEYiSbU2fltgl+yKn4Fisu2luq
 0yoQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-transfer-encoding;
 bh=x/sJ3l95il+r989GfrZIIkujh2pnHGyOplfEVcF5FwU=;
 b=HRUFjtXjfgeR+27JnmSQH+9qKgW73pRFYZ7ipvQ5fIi6/N0CSkpGWfSwP8abls9a69
 wsm1mL1T7DDFOYly1/dp+zdl67ijvfkb+2qBXlF3xnvC7K8zIr0v/MPLGAk0sCrAoia7
 hh27vOCGs/w79zKKnLP8MkMhMWWoMuX6EBDMKxxZngmMbqBQ3eCZGA/s3qpXrDGAQVIM
 i98u35u+y4TYf7371hXkU2MglkQTYRmJM4a2esOEWg3DB56idr6me2tXmCP88BrccGXk
 kZQ8u8jwDe5VwcAyS8kbjrAT6gJEp0uYmN8+3Q67sOK9d7e6OeIuvcQBQeORnNpkwSr5
 MwsA==
X-Gm-Message-State: AFeK/H1GvB3WDnNRih5p1FRILcoH+WFdJoQN843W30yM98+LB/TXAtZSVv/nFCiFitkHLg==
X-Received: by 10.55.92.3 with SMTP id q3mr19643331qkb.164.1491267585841;
 Mon, 03 Apr 2017 17:59:45 -0700 (PDT)
Received: from [192.168.1.200] (static-98-118-34-152.bstnma.fios.verizon.net.
 [98.118.34.152])
 by smtp.gmail.com with ESMTPSA id 1sm10773083qtb.40.2017.04.03.17.59.45
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Mon, 03 Apr 2017 17:59:45 -0700 (PDT)
Subject: Re: bug#26104: 26.0.50; In Ubuntu, having mouse over other frame
 cause Alt key to produce a <switch-frame> event
To: martin rudalics <rudalics@HIDDEN>, 26104 <at> debbugs.gnu.org
References: <3517ed20-78a5-f7ea-7594-eeb18c95e90e@HIDDEN>
 <58CB8E1C.7080104@HIDDEN> <e0208661-658c-928c-0c5e-5f472e21304a@HIDDEN>
 <58CCED78.8050904@HIDDEN> <58DF78AB.9010603@HIDDEN>
From: Jonathan Ganc <jonganc@HIDDEN>
Message-ID: <1d493e40-8d0d-a393-081f-55e32bef0857@HIDDEN>
Date: Mon, 3 Apr 2017 20:59:44 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <58DF78AB.9010603@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 26104
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.5 (/)

Hi Martin,

Thanks for your comment. I was a bit slow to respond because I was bit 
intimidated to start looking at the c code! Sorry.

It should be noted that I don't know that actually moving the mouse 
plays a role here. As long as the mouse cursor is over the other frame, 
the issue happens, even if I don't actually move it. Setting track-mouse 
doesn't make a difference.

I think trying to figure out where the switch-frame actually gets 
triggered is a good idea. It looks like I'm going to have to try doing 
some serious spelunking (at least for me)! As I think you suggest, I 
want to try to figure out what is getting sent by xwindows vs what is 
being generated by emacs itself.


On 04/01/2017 05:53 AM, martin rudalics wrote:
> > IIUC we don't "send" that command anywhere.  We rather put it in the
> > event queue to tell ourselves that we are now in a safe and
> > "historically accurate" place to run Lisp, select that frame's selected
> > window and run some associated hooks.  Maybe someone can tell us the
> > real purpose.
>
> Maybe we should start with finding out how that switch-frame event gets
> generated.  keyboard.c has this
>
>   /* Try generating a mouse motion event.  */
>   else if (!NILP (do_mouse_tracking) && some_mouse_moved ())
>     {
>        ...
>            if (! EQ (frame, internal_last_event_frame)
>           && !EQ (frame, selected_frame))
>         obj = make_lispy_switch_frame (frame);
>       internal_last_event_frame = frame;
>
> and from your description "and the mouse is positioned over the other
> frame" your problem is likely triggered there.
>
> If you set the variable ‘track-mouse’ to nil do you still see the
> problem?  Since this probably won't help when you are within the body of
> a ‘track-mouse’ form, you would have to trace invocations of the latter
> too.
>
> If the event is triggered this way we seem to have a contradiction
> because the doc-string of ‘handle-switch-frame’ says
>
>   A switch-frame event tells Emacs that the window manager has requested
>   that the user’s events be directed to the frame mentioned in the event.
>
> but in the above scenario the window manager is apparently not involved.
>
> In either case it will be debatable whether we should allow the mouse to
> do anything "significant" in between C-y and M-y.  IIUC, the philosophy
> for M-y to succeed is that your fingers didn't move away from the
> keyboard after the previous C-y.  Otherwise, we'd have to decide whether
> to allow mouse scrolling or window autoselection in between C-y and M-y
> as well.  Here, with focus follows mouse, leaving a frame with the mouse
> without entering another one is already sufficient to make M-y fail.
> And if your window manager has a strict focus policy, the M-y won't even
> make it to your Emacs frame ;-)
>
> martin
>





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26104; Package emacs. Full text available.

Message received at 26104 <at> debbugs.gnu.org:


Received: (at 26104) by debbugs.gnu.org; 1 Apr 2017 09:54:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 01 05:54:01 2017
Received: from localhost ([127.0.0.1]:55083 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cuFjN-0007Az-4y
	for submit <at> debbugs.gnu.org; Sat, 01 Apr 2017 05:54:01 -0400
Received: from mout.gmx.net ([212.227.17.21]:62461)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1cuFjL-0007Al-G1
 for 26104 <at> debbugs.gnu.org; Sat, 01 Apr 2017 05:54:00 -0400
Received: from [192.168.1.100] ([213.162.68.37]) by mail.gmx.com (mrgmx103
 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MIMyZ-1cq7vM2xbz-004FEF; Sat, 01
 Apr 2017 11:53:51 +0200
Message-ID: <58DF78AB.9010603@HIDDEN>
Date: Sat, 01 Apr 2017 11:53:47 +0200
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Jonathan Ganc <jonganc@HIDDEN>, 26104 <at> debbugs.gnu.org
Subject: Re: bug#26104: 26.0.50; In Ubuntu, having mouse over other frame
 cause Alt key to produce a <switch-frame> event
References: <3517ed20-78a5-f7ea-7594-eeb18c95e90e@HIDDEN>	<58CB8E1C.7080104@HIDDEN>	<e0208661-658c-928c-0c5e-5f472e21304a@HIDDEN>
 <58CCED78.8050904@HIDDEN>
In-Reply-To: <58CCED78.8050904@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K0:qUWjvRYNIoO15ObMqYWntejUV6XbYqxhb+xm1Luu4NVjDxcpaez
 ot1HG9e9kXgcHqBWzI1vCpTWxJ/qhflp6cnzt0P6zh15GoTib45Ro3jmVR1GYcuv6GTe6so
 zU0rkk/f6cuPu58E5QceR53Wg/PucrFwKW7ZiHxx3UnZ31hUV8YQ03uUX2G2mrd1ZA6tB5n
 csGo1kdjkk8yDUDbMZF+g==
X-UI-Out-Filterresults: notjunk:1;V01:K0:RVLql7d6KEo=:StzscrHVhyBfJTl6vSrEhQ
 oF3mH1OZcqRcnVd2Jz6B5GUrSuqu6QXsfR2Mg+fpu4M0VgwM/prw0Y/e2F7KGL67H06o4UjmX
 QHH5esqLje49SJLFcQW7SGYtjDjvBiz9xzbfLzh4bRWdJySR5SMPV8JhnN4QafyRTyKl20CAU
 U4E2zuSeyIM8C0s+DLC85XVPea18Ad5IAxVfug+SRnJFLihMHHwX6E6ztWqPf47ZgPcWl0Xvw
 uqTRaKwAPx6wogWhs1KjycI0IG+xwXjWWkficdlavkAPfCzZboGIbt7Qn+MwSCYxnhwb3sRb1
 UQRFhC0iVW19CnQXGGVZxn+TFlUK0Kq5KfuHcJgV4i4FvnbWu52DIzzq6oyi3Uj/MLd1Hxmt8
 9OZcgI0vXA+Ytnfs8ss6ENGLmbgeb6WjIL/WpkmDJXlMg1pxUI+r8w0DWokA+jcqZWfeJ4s5p
 wujtCeWCtnLNVW4I00txE14ImS5G4uBfCbsstbo7pqUMMrIZuI8zwR+VuhWbcG8BtKI0iz9GY
 hli2kvihn8jAyTiN7RL7004A7sdiJIk2R1JVyJ2nz3uepsb7Ce8x6bhAFDPD4S+OSLYubQ+IW
 r8FGUBK5MJCDIHIkpKlGGYqRa+O0VyJTNAlmJpeiDDNGwVjL0Gkp7iQYCrnpqWZuoVSqPtiD9
 MFzr8P0J3b1hMLOJn5KtLtSqGwcqb24yAFiUOOQ9e12KtNwUFXbl+gDTYVMFF3sflGrGIf9/h
 DY1Fu2LAOjjkD4h5u51eJ2Fh2VK++5gah8nkfCmWI/Z9/svBBhYimogZjqv0jAy233JxBD3TS
 Ksb2Jd714xvE4JCzJ6kzIFYsrXmAA==
X-Spam-Score: -3.0 (---)
X-Debbugs-Envelope-To: 26104
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.0 (---)

 > IIUC we don't "send" that command anywhere.  We rather put it in the
 > event queue to tell ourselves that we are now in a safe and
 > "historically accurate" place to run Lisp, select that frame's selecte=
d
 > window and run some associated hooks.  Maybe someone can tell us the
 > real purpose.

Maybe we should start with finding out how that switch-frame event gets
generated.  keyboard.c has this

   /* Try generating a mouse motion event.  */
   else if (!NILP (do_mouse_tracking) && some_mouse_moved ())
     {
        ...
      	  if (! EQ (frame, internal_last_event_frame)
	      && !EQ (frame, selected_frame))
	    obj =3D make_lispy_switch_frame (frame);
	  internal_last_event_frame =3D frame;

and from your description "and the mouse is positioned over the other
frame" your problem is likely triggered there.

If you set the variable =E2=80=98track-mouse=E2=80=99 to nil do you still=
 see the
problem?  Since this probably won't help when you are within the body of
a =E2=80=98track-mouse=E2=80=99 form, you would have to trace invocations=
 of the latter
too.

If the event is triggered this way we seem to have a contradiction
because the doc-string of =E2=80=98handle-switch-frame=E2=80=99 says

   A switch-frame event tells Emacs that the window manager has requested=

   that the user=E2=80=99s events be directed to the frame mentioned in t=
he event.

but in the above scenario the window manager is apparently not involved.

In either case it will be debatable whether we should allow the mouse to
do anything "significant" in between C-y and M-y.  IIUC, the philosophy
for M-y to succeed is that your fingers didn't move away from the
keyboard after the previous C-y.  Otherwise, we'd have to decide whether
to allow mouse scrolling or window autoselection in between C-y and M-y
as well.  Here, with focus follows mouse, leaving a frame with the mouse
without entering another one is already sufficient to make M-y fail.
And if your window manager has a strict focus policy, the M-y won't even
make it to your Emacs frame ;-)

martin





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26104; Package emacs. Full text available.

Message received at 26104 <at> debbugs.gnu.org:


Received: (at 26104) by debbugs.gnu.org; 18 Mar 2017 08:19:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 18 04:19:16 2017
Received: from localhost ([127.0.0.1]:33216 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cp9a0-0001eK-MP
	for submit <at> debbugs.gnu.org; Sat, 18 Mar 2017 04:19:16 -0400
Received: from mout.gmx.net ([212.227.17.20]:55108)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1cp9Zy-0001e2-8F
 for 26104 <at> debbugs.gnu.org; Sat, 18 Mar 2017 04:19:14 -0400
Received: from [192.168.1.100] ([213.162.68.84]) by mail.gmx.com (mrgmx101
 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MPHrQ-1ctZQB15Oq-004QGo; Sat, 18
 Mar 2017 09:19:07 +0100
Message-ID: <58CCED78.8050904@HIDDEN>
Date: Sat, 18 Mar 2017 09:19:04 +0100
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Jonathan Ganc <jonganc@HIDDEN>, 26104 <at> debbugs.gnu.org
Subject: Re: bug#26104: 26.0.50; In Ubuntu, having mouse over other frame
 cause Alt key to produce a <switch-frame> event
References: <3517ed20-78a5-f7ea-7594-eeb18c95e90e@HIDDEN>
 <58CB8E1C.7080104@HIDDEN> <e0208661-658c-928c-0c5e-5f472e21304a@HIDDEN>
In-Reply-To: <e0208661-658c-928c-0c5e-5f472e21304a@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K0:pFqo6bV5yjOXN7mJdff9wLq6zifN/ugGmXjuvrCS4JFAYmcQny7
 y1AAwLuFhK40hVtot+iG+XDAXekSFLfSJArH79XP3rOioACecJzuw3DbAK2Dfh9hxjrVvT8
 9val2e2qgEr9MpU+VFqQn2rAQU9irpSjbfm9q4VfChlu+z3g2oO42EgqfLqcnHznhf2yS2t
 9vaAn8SllWPVlWraPMWiw==
X-UI-Out-Filterresults: notjunk:1;V01:K0:OOtDioj5kys=:908gIKDyvwjxuJxBu49Iu5
 YeOqw1yi4YiuZHd6/gqgzmlEoEjOoPEsbCMT30s9MNrIUnA6ZIFaZyv3PnBPZwWswAZnBxoJp
 EgYBF5AdwablRk17h8FvInyDRBx/L7XuZ2N/kqpW4rgwiKZnLkhQRKIDw7bTvlT2O2+WnzvMU
 pT6Y/L58vcShVciEyUF2X11vHuhHYfRR+TXa2vns+31aUwffInseFHBUneTVTU7xekrDvcRwx
 dSrosJ66zS1whjed0ERzBY30BH31OggyBjas85LlUyhZeIlgq8ATtPmowJFq0BPeyXqfcFCMq
 +Pe02QTksEJWZDxjvyloY8JWdb1Xxtb1z6irCA1zTBMKHynrX52X4l0UTb3rf8ykq+XL0zGYr
 pkt/2tTiURwr1L8jjhVsjhwpRsrNwprsjzlq/lcRDgJ26H4/jImY/5iEjvNCvnem/xj3BG3Hq
 3/yJumI+iVahNL1ejzQxXKqAZ4OMimcgs7ZlRMt70hxRLi3Oncyu7w8CHG0XVbgjI4vcnMc/4
 WjMiw2NBntpttnIDQzYsdIXNFOsESSVkJMLeuFqgQjqENl53o0iNdTMLBUZunpaX18zPEt9Gp
 S/l9Z13QDAPZkMpXj5gA6pJK/4V1z4CAnE5HEJ/YWpgYMy9w1Vq3txybe5qk9Ieu3IACo7cfD
 9sPiVc4vdUGIrgz/I9vRKS/WXGs57GZyO3qwxPL6KNNjl1SY7HG2NJxtfq5T4eVv5UaWyxwAA
 wTqcgdtVRa5dwD30K24GG9PrkCRpT/UdGC7mX7aoIMt+pTdOJh0/CFaJhQvIzHzk2U8hYjPre
 dT6NmtWXrQ6SdJI8zhUtrzRKupKFA==
X-Spam-Score: -2.0 (--)
X-Debbugs-Envelope-To: 26104
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.0 (--)

 > That does fix the problem for yank-pop, but I don't think it's a good
 > fix. For example, it let's someone use yank-pop without having used
 > yank if they use handle-switch-frame before. Also, the same issue
 > happens with other commands like dabbrev-expand, which relies on
 > checking what the previous command was.

It wasn't meant to fix anything.  I just wanted to know whether
bypassing this error would allow =E2=80=98yank-pop=E2=80=99 to proceed wi=
thout further
problems.

 > What is the purpose of executing `handle-switch-frame` at all? Maybe
 > there's some way of excluding it from last-command. But again, I don't=

 > really understand x-windows well or why that command is being sent.

IIUC we don't "send" that command anywhere.  We rather put it in the
event queue to tell ourselves that we are now in a safe and
"historically accurate" place to run Lisp, select that frame's selected
window and run some associated hooks.  Maybe someone can tell us the
real purpose.

martin





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26104; Package emacs. Full text available.

Message received at 26104 <at> debbugs.gnu.org:


Received: (at 26104) by debbugs.gnu.org; 18 Mar 2017 01:05:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 17 21:05:07 2017
Received: from localhost ([127.0.0.1]:33066 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cp2nq-0007e2-SV
	for submit <at> debbugs.gnu.org; Fri, 17 Mar 2017 21:05:07 -0400
Received: from mail-qt0-f170.google.com ([209.85.216.170]:32777)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jonganc@HIDDEN>) id 1cp2no-0007dU-S5
 for 26104 <at> debbugs.gnu.org; Fri, 17 Mar 2017 21:05:05 -0400
Received: by mail-qt0-f170.google.com with SMTP id i34so75485028qtc.0
 for <26104 <at> debbugs.gnu.org>; Fri, 17 Mar 2017 18:05:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:references:from:message-id:date:user-agent:mime-version
 :in-reply-to:content-transfer-encoding;
 bh=XLz0j5T1TZ79cc5YBHyyMDP20sZjAFEINO8ABA9Hhi4=;
 b=e6Fxhan54XqpaoGrFViM9SNt0IUO2e+a3YxbuCoxKkg2XnkcA8Fw8KwC3AKMz4UKK3
 2+ABDQ/LZFvEPK+G9wCndPYMpNUIhalXW3FL1fsVrfdserYXKIyvT72hwIkGji/rLVXk
 jEJvMqRINQKTX6IZaRDdnQhF7wankFwnC5Evv4N23hIlvcMqvdeTt+nAfsul8Gc9AJz4
 r7xTUDaflhSst6PLqfeXmyVXv1UHMSVDXyl/G6yiXaJgVn8PnAMOtF2OUoVEDwVyksmz
 TT2qLe9jdG+TGkLHXbMUTa6I5HruRRKv63a+JGTjFkAMkMZSuOv1CWoevOK4k3U59V8N
 rNMQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-transfer-encoding;
 bh=XLz0j5T1TZ79cc5YBHyyMDP20sZjAFEINO8ABA9Hhi4=;
 b=S2zru9UlHo2+RT/DL4EoM4YCtOroxZWdJnW4yx7fXO8So5ObdIszMqtpR6W40WAHAH
 otBOtPoDps3FKAM76zBF9u402+8tB+HOSY2Jj6r+rxmrqZPjPvEj1fLSELfLaWrZkwMg
 xbWf0PFr/ggiF9Urkiu2zIZ9uTMOqUa2cMOZNqfeZJttrmFXTdZKB8S/NvehWBSyJ9q6
 gTtlapuL6fRaOmwlRDPH/dSeUOWR5XhwH8owl5/tdSYiQOKycJoPHkJKWAO9JdWz3QVS
 DeV1Z2Ee0jiYQYmhgSugvWK2pRY1hIfvaB5dR0v0c4Catbd8LxEVNK5K5TceQ+kBpWsI
 28YA==
X-Gm-Message-State: AFeK/H3ubEECn8LSl5X+RW0GWyHod8cnRLIa4iahqql/HnWw3odkhm0WJBk43L92Ci7yAw==
X-Received: by 10.237.36.212 with SMTP id u20mr16089746qtc.290.1489799099077; 
 Fri, 17 Mar 2017 18:04:59 -0700 (PDT)
Received: from [192.168.1.198] (static-98-118-34-152.bstnma.fios.verizon.net.
 [98.118.34.152])
 by smtp.gmail.com with ESMTPSA id 37sm7146464qto.43.2017.03.17.18.04.57
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Fri, 17 Mar 2017 18:04:58 -0700 (PDT)
Subject: Re: bug#26104: 26.0.50; In Ubuntu, having mouse over other frame
 cause Alt key to produce a <switch-frame> event
To: martin rudalics <rudalics@HIDDEN>, 26104 <at> debbugs.gnu.org
References: <3517ed20-78a5-f7ea-7594-eeb18c95e90e@HIDDEN>
 <58CB8E1C.7080104@HIDDEN>
From: Jonathan Ganc <jonganc@HIDDEN>
Message-ID: <e0208661-658c-928c-0c5e-5f472e21304a@HIDDEN>
Date: Fri, 17 Mar 2017 21:04:57 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.7.0
MIME-Version: 1.0
In-Reply-To: <58CB8E1C.7080104@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 26104
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.5 (/)

Hi.

That does fix the problem for yank-pop, but I don't think it's a good 
fix. For example, it let's someone use yank-pop without having used yank 
if they use handle-switch-frame before. Also, the same issue happens 
with other commands like dabbrev-expand, which relies on checking what 
the previous command was.

What is the purpose of executing `handle-switch-frame` at all? Maybe 
there's some way of excluding it from last-command. But again, I don't 
really understand x-windows well or why that command is being sent.

Jonathan


On 03/17/2017 03:19 AM, martin rudalics wrote:
> > In Ubuntu, if I have two frames open and the mouse is positioned 
> over the other frame (i.e. not over the active one), pressing the Alt 
> key produces a <switch-frame> event.
> >
> > While this event does nothing in itself, it disrupts things like 
> yank-pop, which no longer works if it is bound to M-y as usual 
> (because instead of the command sequence yank -> yank-pop, we now have 
> yank -> handle-switch-frame -> yank-pop, which gives an error 
> "user-error: Previous command was not a yank").
> >
> > To be honest, I don't know enough about X-Windows to know if this is 
> emacs' fault or x-windows fault. But it's very annoying.
> >
> > [Tried on Emacs versions 24.5, 25.1, and the 26.0 and Ubuntu 16.10.]
>
> Could you try in simple.el to replace
>
>   (if (not (eq last-command 'yank))
>       (user-error "Previous command was not a yank"))
>
> with
>
>   (if (not (memq last-command '(yank handle-switch-frame)))
>       (user-error "Previous command was not a yank"))
>
> Thanks, martin





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26104; Package emacs. Full text available.

Message received at 26104 <at> debbugs.gnu.org:


Received: (at 26104) by debbugs.gnu.org; 17 Mar 2017 07:20:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 17 03:20:05 2017
Received: from localhost ([127.0.0.1]:59538 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1comBB-0004B0-Eo
	for submit <at> debbugs.gnu.org; Fri, 17 Mar 2017 03:20:05 -0400
Received: from mout.gmx.net ([212.227.15.15]:52460)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1comB9-0004AA-UW
 for 26104 <at> debbugs.gnu.org; Fri, 17 Mar 2017 03:20:04 -0400
Received: from [192.168.1.100] ([213.162.68.37]) by mail.gmx.com (mrgmx002
 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M9b03-1cvffe2FSx-00CwHf; Fri, 17
 Mar 2017 08:19:57 +0100
Message-ID: <58CB8E1C.7080104@HIDDEN>
Date: Fri, 17 Mar 2017 08:19:56 +0100
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Jonathan Ganc <jonganc@HIDDEN>, 26104 <at> debbugs.gnu.org
Subject: Re: bug#26104: 26.0.50; In Ubuntu, having mouse over other frame
 cause Alt key to produce a <switch-frame> event
References: <3517ed20-78a5-f7ea-7594-eeb18c95e90e@HIDDEN>
In-Reply-To: <3517ed20-78a5-f7ea-7594-eeb18c95e90e@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:BAs4fETey3xOVaInzIMLGihuPGYiGzIatsKN66rybpQQ6SdgR1x
 s7bV4Qzdc02lGjiVlXqGB35LVGfeex0Z9h92OTuMBGefCYNO/bjRoTiaP/FJ9AZf73NuBR7
 evpt8sc1nGGsZtUVwjTchHikycmU9JkYkTwHR8sesv2cKhYDcvxA/yKtXBlTQTpdjxszF8e
 6rhJfGtSCychKdWa6l+Cg==
X-UI-Out-Filterresults: notjunk:1;V01:K0:7iBb0PU83gE=:yquGymybJk0HMq3RfRJDKU
 FEE9/sZBNBJ5WJ8X2/6wK/qRstaZjTfaKyAZTfI+mbNNQd8BAzleSN4WXNG99Cc1A8gboD9RE
 3BtJaCuHHphqSJlR9q+InpGfmI88C7hH31H1N0cnOFdbt1qef/PXZOlqmChlnKcBKuzjXAD9F
 VxdVn9adEtEfzcpUq+tlEjD9BLoLFh/YabD6Wb1HF7A7dRc0ZzL6TTwR76DBtVtkZciBepOMF
 PeS/azSHQQEQbF73/eV1A1O8Zt4OOsW/rlSfSSjcMgaPalJzZeEvrZtNcnlhrMLQsgf91BaUF
 RwmI0cY5G9f2Wi0gqxLFVOnMEIxXyfpQS2d8OCYYLgxzrdiUbqoU3zJXIbzOCnVpuVufNRvB3
 QzAM3Dp4KSGnJ+ZWt0b9rHTeDEaOOBljm7qHYDqkjXwIZMx2MJTadEJy1wOqDENUHtUIIyK2J
 VSgS2zx0SCRkrbfWq+qnfomQa5kA92A9xnJHjUnM/37woE4Ckub6biYlAnWnxgVO0p4ohgx5o
 LWjL+Bw8PNfoJ4xwvaxEVO61+rIiEZ4/NP2444gp1/q8iOL6iU6Rgup7DXT39QQ2oFupB4XNA
 B0qM3zUU+B+4fYdwD9gWQCrWQg06J18u2HoeVW8G938pJh7AMcJshOIlife6ZZRxqMBLa5vqi
 0GcUn4Rme280bIFKDO7UkVcEEvlEHlkcn4YZyzSKKtHqaP8c45hK49mhR1la/kOlUyL4Uwaez
 VqJfdpXwR33P0cDG5pYluRSPqvRIsG2cXDsy0Pamn5fvPOp2/yHPYpg6L+e/VpCRGVYmvuswo
 p0fDzzNp7X+Ot/a/hcVH1seb+WWCA==
X-Spam-Score: -3.5 (---)
X-Debbugs-Envelope-To: 26104
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.5 (---)

 > In Ubuntu, if I have two frames open and the mouse is positioned over the other frame (i.e. not over the active one), pressing the Alt key produces a <switch-frame> event.
 >
 > While this event does nothing in itself, it disrupts things like yank-pop, which no longer works if it is bound to M-y as usual (because instead of the command sequence yank -> yank-pop, we now have yank -> handle-switch-frame -> yank-pop, which gives an error "user-error: Previous command was not a yank").
 >
 > To be honest, I don't know enough about X-Windows to know if this is emacs' fault or x-windows fault. But it's very annoying.
 >
 > [Tried on Emacs versions 24.5, 25.1, and the 26.0 and Ubuntu 16.10.]

Could you try in simple.el to replace

   (if (not (eq last-command 'yank))
       (user-error "Previous command was not a yank"))

with

   (if (not (memq last-command '(yank handle-switch-frame)))
       (user-error "Previous command was not a yank"))

Thanks, martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26104; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 15 Mar 2017 03:25:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 14 23:25:45 2017
Received: from localhost ([127.0.0.1]:56214 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cnzZI-0003w5-TG
	for submit <at> debbugs.gnu.org; Tue, 14 Mar 2017 23:25:45 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50741)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jonganc@HIDDEN>) id 1cnzZG-0003vr-Rf
 for submit <at> debbugs.gnu.org; Tue, 14 Mar 2017 23:25:43 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jonganc@HIDDEN>) id 1cnzZA-00072c-ET
 for submit <at> debbugs.gnu.org; Tue, 14 Mar 2017 23:25:37 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:41684)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <jonganc@HIDDEN>) id 1cnzZA-00072G-Al
 for submit <at> debbugs.gnu.org; Tue, 14 Mar 2017 23:25:36 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:41693)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <jonganc@HIDDEN>) id 1cnzZ8-0004y0-KW
 for bug-gnu-emacs@HIDDEN; Tue, 14 Mar 2017 23:25:36 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jonganc@HIDDEN>) id 1cnzZ5-0006vS-F8
 for bug-gnu-emacs@HIDDEN; Tue, 14 Mar 2017 23:25:34 -0400
Received: from mail-qk0-x230.google.com ([2607:f8b0:400d:c09::230]:34088)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <jonganc@HIDDEN>) id 1cnzZ5-0006uz-94
 for bug-gnu-emacs@HIDDEN; Tue, 14 Mar 2017 23:25:31 -0400
Received: by mail-qk0-x230.google.com with SMTP id p64so3822192qke.1
 for <bug-gnu-emacs@HIDDEN>; Tue, 14 Mar 2017 20:25:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=to:from:subject:message-id:date:user-agent:mime-version
 :content-transfer-encoding;
 bh=eguRHygP8dUYwJCjATaP5vJWYZb621fYFVG4pdWtGcQ=;
 b=P1zZC5he7Bs9OPmzQVPGEeHA0khbbEG0BFJ46lml8+92Ga0rzFcPteR2XjhFodgl4n
 BOnJqNA2qFAaum9lTyQ0tB0e3FCZLXB14fTdROq3M38XTgepI594ZxDMHJjvP8eBtF5/
 7V/7uvLkrmigBH/NYVaIupaezL1b4iXOHL2ERAN+fNQiRTowkxPwuLgGuSVEwtXtgmFh
 fTY8ussQjx1gH4s8l0D68QkZAZdN9jRRICd0vxHOOgmSWCpA34y4owO0HipdSHGsGDuz
 +lsZ50OhC+Iq0qMj8ZCmTDHlwL3+lW829qJ7o3UP9wma4UH2HILz/9tAdfaZYC6SH+yv
 5Mzw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:to:from:subject:message-id:date:user-agent
 :mime-version:content-transfer-encoding;
 bh=eguRHygP8dUYwJCjATaP5vJWYZb621fYFVG4pdWtGcQ=;
 b=azbhK5nEOWB1lUZUupiypYXltmzanN0v1F/1Vuf28BfpdE35pSDej//u+tzmYY/GP8
 iY2JQO3R38ZrWvZnmI4svJfwIQ/koekHCi/Ie06a6z8XSHLRJRe53WRZA59NbMo2EpwM
 O2N53Ytu+lfbA11XHRFKC26Te0DQQL+DkdzVtTkJs+3TPA7vsLOy7gWcfc1V7ELgM/EA
 9HyPXEJiUDu78itwGXubFPkAQrfkZUXJNz71G6kDc00bW4zbKJzAY4MJYlrsTGxVNBuY
 JCO9AFbsXryfZsAgrVi0AS8RGnUXdmXHvK+V4k/oqGb03kAritPJc6zaTGOay7zx3Ui7
 X2ww==
X-Gm-Message-State: AFeK/H1ErsdspixhPtKV8t6yAAxkmwkVckGA6MObIJ2+Qg1bjeCPDpoMaIw0U9sh8UtI+Q==
X-Received: by 10.55.185.70 with SMTP id j67mr957836qkf.4.1489548330333;
 Tue, 14 Mar 2017 20:25:30 -0700 (PDT)
Received: from [192.168.1.198] (static-98-118-34-152.bstnma.fios.verizon.net.
 [98.118.34.152])
 by smtp.gmail.com with ESMTPSA id q66sm432659qkd.69.2017.03.14.20.25.29
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 14 Mar 2017 20:25:29 -0700 (PDT)
To: bug-gnu-emacs@HIDDEN
From: Jonathan Ganc <jonganc@HIDDEN>
Subject: 26.0.50; In Ubuntu, having mouse over other frame cause Alt key to
 produce a <switch-frame> event
Message-ID: <3517ed20-78a5-f7ea-7594-eeb18c95e90e@HIDDEN>
Date: Tue, 14 Mar 2017 23:25:24 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.7.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)



In Ubuntu, if I have two frames open and the mouse is positioned over 
the other frame (i.e. not over the active one), pressing the Alt key 
produces a <switch-frame> event.

While this event does nothing in itself, it disrupts things like 
yank-pop, which no longer works if it is bound to M-y as usual (because 
instead of the command sequence yank -> yank-pop, we now have yank -> 
handle-switch-frame -> yank-pop, which gives an error "user-error: 
Previous command was not a yank").

To be honest, I don't know enough about X-Windows to know if this is 
emacs' fault or x-windows fault. But it's very annoying.

[Tried on Emacs versions 24.5, 25.1, and the 26.0 and Ubuntu 16.10.]


In GNU Emacs 26.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.20.9)
  of 2017-03-13 built on lgw01-17
Windowing system distributor 'The X.Org Foundation', version 11.0.11804000
System Description:    Ubuntu 16.10

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...

Configured using:
  'configure --build=x86_64-linux-gnu --prefix=/usr
  '--includedir=${prefix}/include' '--mandir=${prefix}/share/man'
  '--infodir=${prefix}/share/info' --sysconfdir=/etc --localstatedir=/var
  --disable-silent-rules '--libdir=${prefix}/lib/x86_64-linux-gnu'
  '--libexecdir=${prefix}/lib/x86_64-linux-gnu' --disable-maintainer-mode
  --disable-dependency-tracking --prefix=/usr --sharedstatedir=/var/lib
  --program-suffix=-snapshot --with-modules=yes --with-x=yes
  --with-x-toolkit=gtk3 --with-xwidgets=yes 'CFLAGS=-g -O2
  -fdebug-prefix-map=/build/emacs-snapshot-5_17hP/emacs-snapshot-93215-94b59f7-emacs=. -fstack-protector-strong
  -Wformat -Werror=format-security' 'CPPFLAGS=-Wdate-time
  -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro''

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES XWIDGETS LIBSYSTEMD

Important settings:
   value of $LANG: en_US.UTF-8
   value of $XMODIFIERS: @im=ibus
   locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
   tooltip-mode: t
   global-eldoc-mode: t
   electric-indent-mode: t
   mouse-wheel-mode: t
   tool-bar-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   blink-cursor-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t
   line-number-mode: t
   transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message puny seq byte-opt subr-x gv
bytecomp byte-compile cl-extra help-mode cconv cl-loaddefs pcase cl-lib
dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec
password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr
mail-utils time-date mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript case-table epa-hook jka-cmpr-hook help
simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button
faces cus-face macroexp files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote dbusbind inotify dynamic-setting system-font-setting
font-render-setting xwidget-internal move-toolbar gtk x-toolkit x
multi-tty make-network-process emacs)

Memory information:
((conses 16 96862 6611)
  (symbols 48 20194 1)
  (miscs 40 47 82)
  (strings 32 17628 4506)
  (string-bytes 1 566213)
  (vectors 16 14655)
  (vector-slots 8 483106 4490)
  (floats 8 48 68)
  (intervals 56 290 0)
  (buffers 976 12))





Acknowledgement sent to Jonathan Ganc <jonganc@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#26104; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.