Browse Source

add handler to destroy a window

fix-resizing
Wesley Kerfoot 4 years ago
parent
commit
82fd585396
  1. 5
      src/nimwin.nim

5
src/nimwin.nim

@ -200,6 +200,7 @@ when isMainModule:
display.grabKeyCombo(XK_Tab)
display.grabKeyCombo(XK_Q)
display.grabKeyCombo(XK_P)
display.grabKeyCombo(XK_C)
display.grabMouse(1)
display.grabMouse(3)
@ -246,6 +247,10 @@ when isMainModule:
openProcesses[p.processID] = p
spawn handleProcess(p)
HandleKey(XK_C):
let windowStack = toSeq(getChildren(display, logFile))
discard display.XDestroyWindow(windowStack[0].win)
HandleKey(XK_Q):
let currentPath = getAppDir()

Loading…
Cancel
Save