Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-Andre Laperle2015-05-02 04:02:23 +0000
committerArun Thondapu2015-05-08 17:11:23 +0000
commit0cf5caa1400231038c44e978101f7c51517b5cd4 (patch)
tree70774f4f9784fc0f3e8275a47bde1cab66a8d16e /features/org.eclipse.equinox.executable.feature/library
parent76e1baadc29759dbdf6e11a8f1e386fb709c3c9a (diff)
downloadrt.equinox.framework-0cf5caa1400231038c44e978101f7c51517b5cd4.tar.gz
rt.equinox.framework-0cf5caa1400231038c44e978101f7c51517b5cd4.tar.xz
rt.equinox.framework-0cf5caa1400231038c44e978101f7c51517b5cd4.zip
Bug 435742 - [GTK3] Some keybindings/shortcuts become unresponsive
Add workaround in the Eclipse launcher for known issue in GTK3/Xinput2 - https://bugzilla.gnome.org/show_bug.cgi?id=677329 Change-Id: I126ebdc7c0c876684125f939fae1d0ffcd27d456 Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Diffstat (limited to 'features/org.eclipse.equinox.executable.feature/library')
-rw-r--r--features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c b/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c
index 14edf721d..8abe5d615 100644
--- a/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c
+++ b/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c
@@ -125,6 +125,12 @@ int loadGtk() {
if (gtk3 == NULL || strcmp(gtk3,"1") == 0) {
gdkLib = dlopen(GDK3_LIB, DLFLAGS);
gtkLib = dlopen(GTK3_LIB, DLFLAGS);
+
+ /* Work around for https://bugzilla.gnome.org/show_bug.cgi?id=677329, see Eclipse bug 435742 */
+ char *gdkCoreDeviceEvents = getenv("GDK_CORE_DEVICE_EVENTS");
+ if (gdkCoreDeviceEvents == NULL) {
+ setenv("GDK_CORE_DEVICE_EVENTS", "1", 0);
+ }
}
if (!gtkLib || !gdkLib) { //if GTK+ 2
gdkLib = dlopen(GDK_LIB, DLFLAGS);

Back to the top