mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 15:13:13 -04:00
Fix transparent windows on X11
This commit is contained in:
committed by
Kirill Chibisov
parent
1f101b2654
commit
43d6eac871
@@ -242,7 +242,7 @@ impl UnownedWindow {
|
||||
// Find a suitable visual, true color with 32 bits of depth.
|
||||
all_visuals
|
||||
.find_map(|(visual, depth)| {
|
||||
(visual.class == xproto::VisualClass::TRUE_COLOR)
|
||||
(depth == 32 && visual.class == xproto::VisualClass::TRUE_COLOR)
|
||||
.then_some((Some(visual), depth, true))
|
||||
})
|
||||
.unwrap_or_else(|| {
|
||||
|
||||
Reference in New Issue
Block a user