sergei-mironov / xkb-switch

Switch your X keyboard layouts from the command line
MIT License
345 stars 37 forks source link

Fix endlessly increasing memory consumption with the '-W' option #66

Closed akorb closed 2 years ago

akorb commented 2 years ago

build_layout appends the current layouts to the vector syms, without clearing them beforehand. With the -W option, this code path is executed everytime the layout changes. Therefore, this leads to a huge, unnecessary memory consumption.

sergei-mironov commented 2 years ago

Thanks, indeed!