backend-x11: Remove bad branch prediction
This will only get once, at in Clutter initialization time. https://bugzilla.gnome.org/show_bug.cgi?id=703969
This commit is contained in:
parent
78f20627ac
commit
0b32f99bd1
@ -222,8 +222,6 @@ clutter_backend_x11_xsettings_notify (const char *name,
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
clutter_backend_x11_create_device_manager (ClutterBackendX11 *backend_x11)
|
clutter_backend_x11_create_device_manager (ClutterBackendX11 *backend_x11)
|
||||||
{
|
|
||||||
if (G_UNLIKELY (backend_x11->device_manager == NULL))
|
|
||||||
{
|
{
|
||||||
ClutterEventTranslator *translator;
|
ClutterEventTranslator *translator;
|
||||||
ClutterBackend *backend;
|
ClutterBackend *backend;
|
||||||
@ -288,7 +286,6 @@ clutter_backend_x11_create_device_manager (ClutterBackendX11 *backend_x11)
|
|||||||
translator = CLUTTER_EVENT_TRANSLATOR (backend_x11->device_manager);
|
translator = CLUTTER_EVENT_TRANSLATOR (backend_x11->device_manager);
|
||||||
_clutter_backend_add_event_translator (backend, translator);
|
_clutter_backend_add_event_translator (backend, translator);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
clutter_backend_x11_create_keymap (ClutterBackendX11 *backend_x11)
|
clutter_backend_x11_create_keymap (ClutterBackendX11 *backend_x11)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user