1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-21 03:39:16 +03:00

X11: Composite isn't required anymore

on X11 bits_per_value() reports 11 when Composite is disabled and 8 otherwize.
This commit is contained in:
Shizeeg Unadequatov 2021-08-26 17:28:58 +03:00 committed by Wez Furlong
parent e9bf8767e2
commit 61c5063654

View File

@ -407,7 +407,7 @@ impl XConnection {
if depth_bpp == 24 || depth_bpp == 32 {
for vis in depth.visuals() {
if vis.class() == xcb::xproto::VISUAL_CLASS_TRUE_COLOR as u8
&& vis.bits_per_rgb_value() == 8
&& vis.bits_per_rgb_value() >= 8
{
visuals.push((depth_bpp, vis));
}