# HG changeset patch # User Sam # Date 1687798896 -25200 # Node ID 4f991bc3613ace11917995548c3a2eee3dabefd3 # Parent 288738c0ed5f13fdc640f00fb91d1089a68410df fix: wrong flag value, dummy diff -r 288738c0ed5f -r 4f991bc3613a src/semicongine/platform/linux/window.nim --- a/src/semicongine/platform/linux/window.nim Mon Jun 26 23:59:56 2023 +0700 +++ b/src/semicongine/platform/linux/window.nim Tue Jun 27 00:01:36 2023 +0700 @@ -42,15 +42,14 @@ discard XSetErrorHandler(XErrorLogger) let rootWindow = display.XDefaultRootWindow() + discard display.XkbSetDetectableAutoRepeat(true, nil) var attribs: XWindowAttributes width = cuint(800) height = cuint(600) checkXlibResult display.XGetWindowAttributes(rootWindow, addr(attribs)) - var attrs = XSetWindowAttributes( - # override_redirect: 1 - ) + var attrs = XSetWindowAttributes() let window = XCreateWindow( display, rootWindow, @@ -106,7 +105,6 @@ SubstructureRedirectMask or SubstructureNotifyMask, addr xev ) - discard window.display.XkbSetDetectableAutoRepeat(false, nil) checkXlibResult window.display.XFlush() proc hideSystemCursor*(window: NativeWindow) =