Fix transparent windows on X11
This commit is contained in:
parent
8c8fb39fcd
commit
ffb46dd61f
2 changed files with 3 additions and 2 deletions
|
|
@ -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(|| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue