From owner-freebsd-gnome@FreeBSD.ORG Thu Mar 14 21:20:01 2013 Return-Path: Delivered-To: gnome@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 710F8CC1 for ; Thu, 14 Mar 2013 21:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 62A1EC25 for ; Thu, 14 Mar 2013 21:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2ELK1rP051036 for ; Thu, 14 Mar 2013 21:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2ELK1bv051035; Thu, 14 Mar 2013 21:20:01 GMT (envelope-from gnats) Date: Thu, 14 Mar 2013 21:20:01 GMT Message-Id: <201303142120.r2ELK1bv051035@freefall.freebsd.org> To: gnome@FreeBSD.org From: The BSD Dreamer Subject: Re: ports/176963: x11-toolkits/vte: need update after gtk2 update X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The BSD Dreamer List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Mar 2013 21:20:01 -0000 The following reply was made to PR ports/176963; it has been noted by GNATS. From: The BSD Dreamer To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org Cc: Subject: Re: ports/176963: x11-toolkits/vte: need update after gtk2 update Date: Thu, 14 Mar 2013 16:16:01 -0500 This is a multi-part message in MIME format. --------------030108000100010600010607 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Well, I tracked down the patch for #663779 and applied it to the current vte-0.26.2, and starting a new gnome-terminal (and without having kill all my other instances) found the ALT key is working as expected in this new gnome-terminal. --------------030108000100010600010607 Content-Type: text/x-csrc; name="patch-src_vte.c" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch-src_vte.c" --- src/vte.c.orig 2010-11-13 06:18:41.000000000 -0600 +++ src/vte.c 2013-03-14 15:59:37.761401135 -0500 @@ -4914,16 +4914,23 @@ vte_terminal_read_modifiers (VteTerminal *terminal, GdkEvent *event) { + GdkKeymap *keymap; GdkModifierType modifiers; /* Read the modifiers. */ - if (gdk_event_get_state((GdkEvent*)event, &modifiers)) { - GdkKeymap *keymap; - keymap = gdk_keymap_get_for_display ( - gdk_drawable_get_display (((GdkEventAny *)event)->window)); - gdk_keymap_add_virtual_modifiers (keymap, &modifiers); - terminal->pvt->modifiers = modifiers; - } + if (!gdk_event_get_state((GdkEvent*)event, &modifiers)) + return; + + keymap = gdk_keymap_get_for_display ( + gdk_window_get_display (((GdkEventAny*)event)->window)); + + gdk_keymap_add_virtual_modifiers (keymap, &modifiers); + + /* HACK! Treat ALT as META; see bug #663779. */ + if (modifiers & GDK_MOD1_MASK) + modifiers |= VTE_META_MASK; + + terminal->pvt->modifiers = modifiers; } /* Read and handle a keypress event. */ --------------030108000100010600010607--