Actually warn once if we failed to set acceleration profile.

This commit is contained in:
ajacoutot 2019-01-20 04:55:56 +00:00
parent 36abf8db47
commit eecc970480
2 changed files with 12 additions and 5 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.89 2019/01/18 01:24:19 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.90 2019/01/20 04:55:56 ajacoutot Exp $
COMMENT= window and compositing manager
GNOME_PROJECT= mutter
GNOME_VERSION= 3.30.2
REVISION= 0
REVISION= 1
API_SUFFIX= -3
SUBST_VARS= API_SUFFIX

View File

@ -1,16 +1,23 @@
$OpenBSD: patch-src_backends_x11_meta-input-settings-x11_c,v 1.1 2019/01/18 01:24:19 ajacoutot Exp $
$OpenBSD: patch-src_backends_x11_meta-input-settings-x11_c,v 1.2 2019/01/20 04:55:56 ajacoutot Exp $
https://gitlab.gnome.org/GNOME/mutter/merge_requests/394
Index: src/backends/x11/meta-input-settings-x11.c
--- src/backends/x11/meta-input-settings-x11.c.orig
+++ src/backends/x11/meta-input-settings-x11.c
@@ -486,7 +486,7 @@ has_udev_property (MetaInputSettings *settings,
@@ -486,7 +486,14 @@ has_udev_property (MetaInputSettings *settings,
g_object_unref (parent_udev_device);
return FALSE;
#else
- g_warning ("Failed to set acceleration profile: no udev support");
+ g_debug ("Failed to set acceleration profile: no udev support");
+ static gboolean warned_once = FALSE;
+
+ if (!warned_once)
+ {
+ g_warning ("Failed to set acceleration profile: no udev support");
+ warned_once = TRUE;
+ }
+
return FALSE;
#endif
}