deps: bump xcb to 1.7.0

Notably, `xcb` 1.7.0 made `XidNew::new` no longer unsafe, so remove all
of the unsafe blocks wrapping `XidNew::new` calls. Most of these were
for creating fake windows in the unit tests, but a few were in `xstate`.
This commit is contained in:
En-En 2026-01-08 03:01:06 +00:00 committed by Supreeeme
parent 74cf1a95a3
commit bc47ef5950
4 changed files with 63 additions and 63 deletions

View file

@ -547,8 +547,8 @@ impl XState {
warn!("unknown action for _NET_WM_STATE: {}", data[0]);
return;
};
let prop1 = unsafe { x::Atom::new(data[1]) };
let prop2 = unsafe { x::Atom::new(data[2]) };
let prop1 = x::Atom::new(data[1]);
let prop2 = x::Atom::new(data[2]);
trace!("_NET_WM_STATE ({action:?}) props: {prop1:?} {prop2:?}");
@ -1122,7 +1122,7 @@ impl From<&[u32]> for WmHints {
let flags = WmHintsFlags::from_bits_truncate(value[0]);
if flags.contains(WmHintsFlags::WindowGroup) {
let window = unsafe { x::Window::new(value[8]) };
let window = x::Window::new(value[8]);
ret.window_group = Some(window);
}