Fixed a crash with disabled repeating keys on wayland

This commit is contained in:
Deve 2018-01-08 21:12:39 +01:00
parent 6a21ca75fb
commit f7654d3867

View File

@ -425,7 +425,7 @@ public:
{
CIrrDeviceWayland* device = static_cast<CIrrDeviceWayland*>(data);
device->m_repeat_rate = 1000 / rate;
device->m_repeat_rate = rate == 0 ? 0 : 1000 / rate;
device->m_repeat_delay = delay;
}