MFH: r563178

Add patch to libxfce4menu reverting part of upstream commit 85d8d390,
adding back code to ungrab all keys before grabbing them again.

The call has been removed upstream due to causing problems with tty
switching on linux, but testing in FreeBSD show no such problems
when switching to and from vty, and fix issues with keys not working
properly in FreeBSD.

PR:		244290
Submitted by:	aryeh.friedman@gmail.com,
		Jethro Nederhof <jethro@jethron.id.au> (suggested patch)
Reported by:	many
This commit is contained in:
Guido Falsi 2021-01-29 10:58:28 +00:00
parent b4c0169a84
commit fef49d3546
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2021Q1/; revision=563193
2 changed files with 22 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= libxfce4menu
PORTVERSION= 4.16.0
PORTREVISION= 1
CATEGORIES= x11 xfce
MASTER_SITES= XFCE
DISTNAME= libxfce4ui-${DISTVERSIONFULL}

View File

@ -0,0 +1,21 @@
--- libxfce4kbd-private/xfce-shortcuts-grabber.c.orig 2020-11-23 10:16:17 UTC
+++ libxfce4kbd-private/xfce-shortcuts-grabber.c
@@ -22,6 +22,8 @@
#include <config.h>
#endif
+#include <sys/param.h>
+
#include <glib.h>
#include <glib-object.h>
@@ -180,6 +182,9 @@ xfce_shortcuts_grabber_keys_changed (GdkKeymap
TRACE ("Keys changed, regrabbing");
+#ifdef __FreeBSD__
+ xfce_shortcuts_grabber_ungrab_all (grabber);
+#endif
xfce_shortcuts_grabber_grab_all (grabber);
}