FS#26862 - [gtk2][gtk3]Left alt key switching not working

Attached to Project: Arch Linux
Opened by Mikolaj Romel (wassup) - Saturday, 12 November 2011, 12:29 GMT
Last edited by Ionut Biru (wonder) - Saturday, 12 November 2011, 18:52 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
After upgrade of gtk2 from version 2.24.27-1 -> 2.24.28-1, left alt's ability to switch windows stopped working. Thus, alt+<number> does not work anymore to switch windows in e.g. irssi and alike, yet it works to switch e.g. chromium tabs.

Here is the bbs thread: https://bbs.archlinux.org/viewtopic.php?id=130168

Additional info:
gtk2-2.24.28-1


Steps to reproduce:
Upgrade to the newest gtk available in the repo.
This task depends upon

Closed by  Ionut Biru (wonder)
Saturday, 12 November 2011, 18:52 GMT
Reason for closing:  Fixed
Additional comments about closing:  vte-0.28.2-3
vte3-0.30.1-2
Comment by Ionut Biru (wonder) - Saturday, 12 November 2011, 12:39 GMT
works for me in firefox. but if you really really really think is a bug, please report to http://bugzilla.gnome.org
Comment by Mikolaj Romel (wassup) - Saturday, 12 November 2011, 12:43 GMT
Yes, it workis in the browser, but doesn't work for e.g. irssi. In my chromium it works as well. I'll file a bug upstream.
Comment by Ionut Biru (wonder) - Saturday, 12 November 2011, 12:45 GMT
irssi is not a gtk2 app. maybe you want to tell us what terminal are you using
Comment by Mikolaj Romel (wassup) - Saturday, 12 November 2011, 12:50 GMT Comment by Mikolaj Romel (wassup) - Saturday, 12 November 2011, 12:51 GMT
I'm using terminal-0.4.8-1.
Comment by Ionut Biru (wonder) - Saturday, 12 November 2011, 12:52 GMT
what happens exactly when you push alt+1? do you have more tabs in the terminal? does alt+1/2 switch between terminal tabs rather than irssi?
Comment by Mikolaj Romel (wassup) - Saturday, 12 November 2011, 12:53 GMT
I don't use tabs in terminal. Alt+1 just outputs '1' on the screen.
Comment by Ionut Biru (wonder) - Saturday, 12 November 2011, 12:54 GMT
so add that info to the upstream report because if very uncleared.

also, best practice is to NOT add external links to a report because nobody is going to read them
Comment by Mikolaj Romel (wassup) - Saturday, 12 November 2011, 12:55 GMT
Ok, I'll remember that for the future. Thank you.
Comment by Lee Starnes (lstarnes) - Saturday, 12 November 2011, 16:09 GMT
I can confirm that this problem exists in the latest version of Terminal in Arch. Applications running in Terminal do not receive Left Alt. I can't confirm this for Right Alt due to having a US International keyboard layout.
Comment by Ionut Biru (wonder) - Saturday, 12 November 2011, 16:13 GMT
@Lee, if you care, here is the commit that introduced the regression. waiting to see what upstream has to say

commit 273283db9217960970810e90ef841f685231484a
Author: Michael Natterer <mitch@gimp.org>
Date: Mon Nov 7 20:09:00 2011 +0100

gdk: exclude MOD1 from the virtual modifier mapping

which effectively nails down the MOD1 == ALT assumption that is valid
in all other parts of GTK+. After the modifier abstraction fixes for
OSX, the virtual mapping is now (correctly) used in more places, and
caused problems with the common default PC keyboard layout on X11 that
colocates ALT and META on the same key.
(cherry picked from commit ac943bf69a87c992cfde59c6720ef08fdd20e683)
Comment by Mikolaj Romel (wassup) - Saturday, 12 November 2011, 17:07 GMT
I use PL keyboard and right alt works as expected.
Comment by Chris Warrick (Kwpolska) - Saturday, 12 November 2011, 18:03 GMT Comment by Ionut Biru (wonder) - Saturday, 12 November 2011, 18:06 GMT
@Kwpolska that's the commit that introduced the regression
Comment by Chris Warrick (Kwpolska) - Saturday, 12 November 2011, 18:13 GMT
@wonder yes, I just noticed, I am currently reverting the patch on my machine, we'll see if it works.
patch for /gtk+-2.24.8/gdk/x11/gdkkeys-x11.c attached. Untested.

ninjaedit 20111112T192925Z: it works well
Comment by Ionut Biru (wonder) - Saturday, 12 November 2011, 18:24 GMT
the idea is that gtk now treats in the right way alt and mod1 instead of meta

vte needs a fix conform upstream

Loading...