openbsd-ports/x11/gpointing-device-settings/patches/patch-modules_gnome-settings-daemon-plugins_gsd-touchpad-manager_c
mpi 49ed4a3db3 Import gpointing-device-settings-1.5.1
GPointingDeviceSettings is a GUI tool for setting pointing device such
as TrackPoint or Touchpad. Each UI can be written as dynamic loadable
module, so a third party can add its own UI.

Based on a port from jasper@ with tweaks by ajacoutot@

ok ajacoutot@, jasper@
2011-08-31 15:15:25 +00:00

27 lines
938 B
Plaintext

$OpenBSD: patch-modules_gnome-settings-daemon-plugins_gsd-touchpad-manager_c,v 1.1.1.1 2011/08/31 15:15:25 mpi Exp $
Fix build with gtk+-2.22.
From https://bugzilla.gnome.org/show_bug.cgi?id=631068
--- modules/gnome-settings-daemon-plugins/gsd-touchpad-manager.c.orig Fri Feb 5 00:15:56 2010
+++ modules/gnome-settings-daemon-plugins/gsd-touchpad-manager.c Mon Jan 17 14:42:04 2011
@@ -348,15 +348,15 @@ add_device_presence_filter (GsdPointingDeviceManager *
gint op_code, event, error;
- if (!XQueryExtension(GDK_DISPLAY(),
+ display = gdk_x11_get_default_xdisplay();
+
+ if (!XQueryExtension(display,
"XInputExtension",
&op_code,
&event,
&error)) {
return;
}
-
- display = gdk_x11_get_default_xdisplay();
gdk_error_trap_push();
DevicePresence(display, xi_presence, class_presence);