workaround for #45.

This commit is contained in:
m1k1o
2021-04-07 22:19:50 +02:00
parent 89dd22727c
commit 1a09442f26
4 changed files with 9 additions and 24 deletions

View File

@ -166,13 +166,6 @@ short XGetScreenRate() {
return XRRConfigCurrentRate(conf);
}
void SetKeyboardLayout(char *layout) {
// TOOD: refactor, use native API.
char cmd[13] = "setxkbmap ";
strncat(cmd, layout, 2);
int r = system(cmd);
}
void SetKeyboardModifiers(int num_lock, int caps_lock, int scroll_lock) {
Display *display = getXDisplay();