def prop_set(target, key, etype, value): with xsync: X11Window.XChangeProperty(get_xwindow(target), key, prop_encode(target, etype, value))
def prop_set(target, key, etype, value): with xsync: dtype, dformat, data = prop_encode(target, etype, value) X11WindowBindings().XChangeProperty(target.get_xid(), key, dtype, dformat, data)
def raw_prop_set(xid, key, etype, value): with xsync: dtype, dformat, data = prop_encode(etype, value) X11WindowBindings().XChangeProperty(xid, key, dtype, dformat, data)