meh / rust-xcb-util

Rust bindings and wrappers for XCB utility functions.
MIT License
27 stars 17 forks source link

icccm: fix the ordering of instance and class in set_wm_class #16

Closed user827 closed 2 years ago

user827 commented 3 years ago

Before, this one would output class: instance, instance: class

icccm::set_wm_class(&conn, window, "class", "instance");
let cr = icccm::get_wm_class(&conn, window).get_reply().unwrap();
println!("class: {}, instance: {}", cr.class(), cr.instance());

Also when I used xprop the ordering of class and instance did not seem to match that of other apps