Browse Source

Merge branch 'master' of github.com:weskerfoot/Nimwin

fix-resizing
Wesley Kerfoot 4 years ago
parent
commit
588fa77c20
  1. 7
      src/nimwin.nim

7
src/nimwin.nim

@ -3,6 +3,11 @@ import threadpool, osproc, tables, sequtils
var root : TWindow
proc handleBadWindow(display : PDisplay, ev : PXErrorEvent) : cint {.cdecl.} =
# resourceID maps to the Window's XID
# ev.resourceID
0
template HandleKey(key : TKeySym, body : untyped) : untyped =
block:
if (XLookupKeySym(cast[PXKeyEvent](ev.xkey.addr), 0) == key.cuint):
@ -144,6 +149,8 @@ when isMainModule:
var openProcesses = initTable[int, Process]() # hashset of processes
discard XSetErrorHandler(handleBadWindow)
while true:
let processExited = processChan.tryRecv()

Loading…
Cancel
Save