changeset 762:4f991bc3613a

fix: wrong flag value, dummy
author Sam <sam@basx.dev>
date Tue, 27 Jun 2023 00:01:36 +0700
parents 288738c0ed5f
children a4c757f5d17f
files src/semicongine/platform/linux/window.nim
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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) =