Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: VlAleVas on Nov 19th, 2012  |  syntax: Python  |  size: 0.32 KB  |  views: 28  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. def reserve_space(xid, place):
  2.     d = display.Display()
  3.     root = d.screen().root
  4.     w = d.create_resource_object("window", xid)
  5.     atom = d.intern_atom("_NET_WM_STRUT_PARTIAL")
  6.     w.change_property(atom, Xatom.STRING, 32, place, X.PropModeAppend)
  7.  
  8. utils.reserve_space(xid, [0, 60, 0, 0, 0, 0, 0, 767, 0, 0, 0, 0])
clone this paste RAW Paste Data