rust-x-bindings / rust-xcb

Rust bindings and wrapper for XCB.
MIT License
162 stars 64 forks source link

xkb::GetNames still fails unable to unpack reply.value_list() #213

Open igor-petruk opened 1 year ago

igor-petruk commented 1 year ago

I've seen previous bugfixes, but it looks like the issue remains.

I am trying to print layout names and selected layout, but I cannot get past fetching atoms

let reply = conn.wait_for_reply(conn.send_request(
         &xkb::GetNames{
               device_spec: xkb::Id::UseCoreKbd as xkb::DeviceSpec,
               which: xkb::NameDetail::all(),
          }
)).unwrap();
println!("Len: {}", reply.value_list().len());

Crashes with attempt to add with overflow. If I limit NameDetail to SYMBOLS and/or GROUP_NAMES

internal error: entered unreacheable code: Could not match any expression for GetNamesReplyValueList`.

xcb 1.1.1, features: xkb, and optionally - xlib_xcb

igor-petruk commented 1 year ago

Afaik, I've just tried with git version of the library - the fix in #184 indeed helped. With that established, when can the package be pushed to crates.io? Thanks!