Skip to content

Commit bd6dece

Browse files
Merge pull request #181 from t-wissmann/master
Use encode_array() in Drawable._get_struct_prop()
2 parents 4d07023 + 882714a commit bd6dece

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Xlib/xobject/drawable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ def get_wm_icon_size(self):
779779
def _get_struct_prop(self, pname, ptype, pstruct):
780780
r = self.get_property(pname, ptype, 0, pstruct.static_size // 4)
781781
if r and r.format == 32:
782-
value = r.value.tostring()
782+
value = rq.encode_array(r.value)
783783
if len(value) == pstruct.static_size:
784784
return pstruct.parse_binary(value, self.display)[0]
785785

0 commit comments

Comments
 (0)