Add mapping notification support for X11
This commit is contained in:
parent
aba54925d8
commit
89ea3af65e
@ -782,7 +782,7 @@ String KeyboardImpl::getDescription(Keyboard::Scancode code)
|
|||||||
case Keyboard::Scan::LaunchMail: return "Launch Mail";
|
case Keyboard::Scan::LaunchMail: return "Launch Mail";
|
||||||
case Keyboard::Scan::LaunchMediaSelect: return "Launch Media Select";
|
case Keyboard::Scan::LaunchMediaSelect: return "Launch Media Select";
|
||||||
|
|
||||||
default: return "Unknown Scancode";
|
default: return "Unknown Scancode";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2005,6 +2005,15 @@ bool WindowImplX11::processEvent(XEvent& windowEvent)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Keyboard mapping changed
|
||||||
|
case MappingNotify:
|
||||||
|
{
|
||||||
|
if (windowEvent.xmapping.request == MappingKeyboard)
|
||||||
|
XRefreshKeyboardMapping(&windowEvent.xmapping);
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// Window unmapped
|
// Window unmapped
|
||||||
case UnmapNotify:
|
case UnmapNotify:
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user