Create xkb context before registry listener is created
This commit is contained in:
parent
4f9b46b20c
commit
55ea7625b3
@ -774,6 +774,8 @@ CIrrDeviceWayland::CIrrDeviceWayland(const SIrrlichtCreationParameters& params)
|
||||
|
||||
m_display = wl_display_connect(NULL);
|
||||
|
||||
m_xkb_context = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
|
||||
|
||||
m_registry = wl_display_get_registry(m_display);
|
||||
wl_registry_add_listener(m_registry, &WaylandCallbacks::registry_listener,
|
||||
this);
|
||||
@ -781,8 +783,6 @@ CIrrDeviceWayland::CIrrDeviceWayland(const SIrrlichtCreationParameters& params)
|
||||
wl_display_dispatch(m_display);
|
||||
wl_display_roundtrip(m_display);
|
||||
|
||||
m_xkb_context = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
|
||||
|
||||
if (CreationParams.DriverType != video::EDT_NULL)
|
||||
{
|
||||
if (!createWindow())
|
||||
|
Loading…
Reference in New Issue
Block a user