Hi, how to get the id of the window obtained from call to g_io_channel_read_line, as shown below?
Thank you
let mut raw: *mut std::os::raw::c_char = std::ptr::null_mut();
let size: *mut GType = std::ptr::null_mut();
let terminator_pos: *mut GType = std::ptr::null_mut();
let ptr_error = std::ptr::null_mut();
glib_sys::g_io_channel_read_line(
std_out_ch,
&mut raw,//HERE IS A WINDOW ID WRITTEN
size,
terminator_pos,
ptr_error,
);
I’m pretty certain that you are correct, I simply am not aware of those.
Could you please give examples how to port this to rust so there is no unsafe code?
That wasn’t my idea. Guys who started that app over a decade ago made that decision. Now X11 is a target and there is simply no chance of changing it in any near future.