Added xKbSetDetectableAutoRepeat (#20360)

This commit is contained in:
Krzysztof Krysiński
2025-12-29 10:24:04 +01:00
committed by GitHub
parent 66d38d897d
commit f74633c574
+7
View File
@@ -41,6 +41,13 @@ namespace Avalonia.X11
plat.Windows[_rootWindow] = OnRootWindowEvent;
XSelectInput(_x11.Display, _rootWindow,
new IntPtr((int)(EventMask.StructureNotifyMask | EventMask.PropertyChangeMask)));
if (_x11.HasXkb)
{
nint supportsDetectable = 0;
XkbSetDetectableAutoRepeat(_x11.Display, true, supportsDetectable);
}
_compositingAtom = XInternAtom(_x11.Display, "_NET_WM_CM_S" + _screenNumber, false);
OnNewWindowManager();
UpdateCompositingAtomOwner();