Skip to content

Instantly share code, notes, and snippets.

@mklinik
Created September 5, 2011 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mklinik/1195289 to your computer and use it in GitHub Desktop.
Save mklinik/1195289 to your computer and use it in GitHub Desktop.
updatePid :: H.HashTable Int Window -> Window -> X ()
updatePid pidhash w = do
mpid <- getProp32s "_NET_WM_PID" w
pid <- mpid
H.update pidhash (fromIntegral $ fromJust pid) w
return ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment