# HG changeset patch # User Sam # Date 1687798896 -25200 # Node ID bf5982802e2ccffbbb042b4836ec3b72926bfcc0 # Parent b1fe29fe41fb9e0e0089217d8bc0f8d95fbd680c fix: wrong flag value, dummy diff -r b1fe29fe41fb -r bf5982802e2c 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) =