mirror of
https://github.com/davatorium/rofi.git
synced 2025-02-03 15:34:54 -05:00
Fix #438 look for a 8 bpc 32bit visual, fixes 10bpc 30bit screen
This commit is contained in:
parent
6495d8e8df
commit
026a8cbb34
1 changed files with 1 additions and 1 deletions
|
@ -617,7 +617,7 @@ void x11_create_visual_and_colormap ( void )
|
|||
xcb_visualtype_iterator_t visual_iter;
|
||||
for ( visual_iter = xcb_depth_visuals_iterator ( d ); visual_iter.rem; xcb_visualtype_next ( &visual_iter ) ) {
|
||||
xcb_visualtype_t *v = visual_iter.data;
|
||||
if ( ( d->depth == 32 ) && ( v->_class == XCB_VISUAL_CLASS_TRUE_COLOR ) ) {
|
||||
if ( (v->bits_per_rgb_value == 8) && ( d->depth == 32 ) && ( v->_class == XCB_VISUAL_CLASS_TRUE_COLOR ) ) {
|
||||
depth = d;
|
||||
visual = v;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue