aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/vte
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2013-03-16 05:39:16 +0800
committerkwm <kwm@FreeBSD.org>2013-03-16 05:39:16 +0800
commit77880fbd9bd309254c57bcff0847732e9eb159c5 (patch)
treec0d314251aafaa63d3517fb7a96a6de58a993c0c /x11-toolkits/vte
parent3768aea7fe004f4e65b8cb6bab3b932a1ec3a475 (diff)
downloadfreebsd-ports-gnome-77880fbd9bd309254c57bcff0847732e9eb159c5.tar.gz
freebsd-ports-gnome-77880fbd9bd309254c57bcff0847732e9eb159c5.tar.zst
freebsd-ports-gnome-77880fbd9bd309254c57bcff0847732e9eb159c5.zip
Restore alt keys after gtk20 update.
While here convert to OptionsNG. PR: ports/176963 Submitted by: Lawrence Chen <beastie@tardisi.com> Obtained from: upstream git / Gnome bug 663779
Diffstat (limited to 'x11-toolkits/vte')
-rw-r--r--x11-toolkits/vte/Makefile17
-rw-r--r--x11-toolkits/vte/files/patch-src_vte.c33
2 files changed, 43 insertions, 7 deletions
diff --git a/x11-toolkits/vte/Makefile b/x11-toolkits/vte/Makefile
index 289a0b0e315f..4482d638af3a 100644
--- a/x11-toolkits/vte/Makefile
+++ b/x11-toolkits/vte/Makefile
@@ -4,7 +4,7 @@
PORTNAME= vte
PORTVERSION= 0.26.2
-PORTREVISION?= 3
+PORTREVISION?= 4
CATEGORIES= x11-toolkits gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2
@@ -30,7 +30,15 @@ CONFIGURE_ARGS?=--disable-python \
--disable-freetypetest
.if !defined(MASTERDIR)
-OPTIONS= GLX "Enable support for DRI/GLX rendering" off
+OPTIONS_DEFINE= GLX
+GLX_DESC= Support for DRI/GLX rendering
+.endif
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MGLX} && !defined(MASTERDIR)
+CONFIGURE_ARGS+= --with-glX
+USE_GL= yes
.endif
.include <bsd.port.pre.mk>
@@ -39,11 +47,6 @@ OPTIONS= GLX "Enable support for DRI/GLX rendering" off
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-gnome-pty-helper_gnome-utmp.c
.endif
-.if defined(WITH_GLX) && !defined(MASTERDIR)
-CONFIGURE_ARGS+= --with-glX
-USE_GL= yes
-.endif
-
.include <bsd.port.post.mk>
.endif
diff --git a/x11-toolkits/vte/files/patch-src_vte.c b/x11-toolkits/vte/files/patch-src_vte.c
new file mode 100644
index 000000000000..b8e1a96113b1
--- /dev/null
+++ b/x11-toolkits/vte/files/patch-src_vte.c
@@ -0,0 +1,33 @@
+--- 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. */