Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Mar 2013 21:20:01 GMT
From:      The BSD Dreamer <beastie@tardisi.com>
To:        gnome@FreeBSD.org
Subject:   Re: ports/176963: x11-toolkits/vte: need update after gtk2 update
Message-ID:  <201303142120.r2ELK1bv051035@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/176963; it has been noted by GNATS.

From: The BSD Dreamer <beastie@tardisi.com>
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303142120.r2ELK1bv051035>