mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
x11display: fix threaded crash when using get_keyboard_map()
This commit is contained in:
parent
d5a4dcfd1d
commit
6a008ae724
@ -1976,6 +1976,8 @@ get_keyboard_map() const {
|
|||||||
// XkbGetMap(_display, XkbAllMapComponentsMask, XkbUseCoreKbd);
|
// XkbGetMap(_display, XkbAllMapComponentsMask, XkbUseCoreKbd);
|
||||||
ButtonMap *map = new ButtonMap;
|
ButtonMap *map = new ButtonMap;
|
||||||
|
|
||||||
|
LightReMutexHolder holder(x11GraphicsPipe::_x_mutex);
|
||||||
|
|
||||||
for (int k = 9; k <= 135; ++k) {
|
for (int k = 9; k <= 135; ++k) {
|
||||||
ButtonHandle raw_button = map_raw_button(k);
|
ButtonHandle raw_button = map_raw_button(k);
|
||||||
if (raw_button == ButtonHandle::none()) {
|
if (raw_button == ButtonHandle::none()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user