rshk / python-libxdo

Python bindings for libxdo
BSD 3-Clause "New" or "Revised" License
76 stars 19 forks source link

Implemented wrapper around xdo_get_window_name #2

Closed flagist0 closed 8 years ago

flagist0 commented 8 years ago

Also added import of XFree from Xlib

rshk commented 8 years ago

Looks good, thanks for contributing!

About XFree, it would probably be nice to find some context-manager based solution, to make sure strings are freed even in case of exceptions being raised somewhere in the function code (and also make sure everything is freed properly, eg. the pointer in get_window_property, ..). Would you have time to look into that?

Thanks