forked from pyrite-dev/milsko
wayland: set a default for keyboard_repeat/keyboard_rate in case a compostior doesn't send key_repeat_info
This commit is contained in:
parent
e8a4e266b3
commit
052863dcfe
1 changed files with 4 additions and 0 deletions
|
|
@ -677,6 +677,10 @@ static void widget_setup(MwLL r, MwLL parent, int x, int y, int width, int heigh
|
|||
MwLLForceRender(parent);
|
||||
}
|
||||
|
||||
/* If the compositor never sets the keyboard repeat info, we'll copy KDE's default of... */
|
||||
r->wayland.keyboard_delay = 600; /* starting at 600ms... */
|
||||
r->wayland.keyboard_rate = 25; /* and going every 25ms... */
|
||||
|
||||
if(!r->wayland.has_decorations) {
|
||||
MwLLBeginDraw(r);
|
||||
MwLLEndDraw(r);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue