CuarzoSoftware / Louvre

C++ library for building Wayland compositors.
MIT License
506 stars 14 forks source link

Changing keyboard layouts dynamically #61

Closed milisarge closed 2 months ago

milisarge commented 2 months ago

Is it possible to change keyboard layout dynamically without restarting the compositor?

Fox2Code commented 2 months ago

Translation: Is there an easy to use API to change keyboard layout at runtime.

Also, yeah, I think keyboard layout switching is important, I have a French keyboard, and sometimes I have to switch keyboard layout around to help me make some games work correctly.

ehopperdietzel commented 2 months ago

Is it possible to change keyboard layout dynamically without restarting the compositor?

Yes, LKeyboard::setKeymap() can be called at any time and will update all clients keymaps.