mirror of
https://github.com/brl/mutter.git
synced 2024-11-09 23:46:33 -05:00
input-settings/x11: Only warn once about missing udev support
Otherwise we end up logging the same message everytime we enter this function, flooding the logs and making it annoying to spot other entries.
This commit is contained in:
parent
ff507273d2
commit
1ca60f424a
@ -488,7 +488,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");
|
||||
static gboolean warned_once = FALSE;
|
||||
|
||||
if (!warned_once)
|
||||
{
|
||||
g_warning ("Failed to set acceleration profile: no udev support");
|
||||
warned_once = TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user