]> git.sur5r.net Git - i3/i3/commit - libi3/draw_util.c
Use 32-bit visual by default if available.
authorIngo Bürk <ingo.buerk@tngtech.com>
Tue, 17 Nov 2015 11:50:06 +0000 (12:50 +0100)
committerIngo Bürk <ingo.buerk@tngtech.com>
Mon, 23 Nov 2015 21:18:02 +0000 (22:18 +0100)
commit780cb8d15d07febbb9be47cb1bc1201072b31838
tree70b8d2dd5f49b114d73a1f9d6b1ef1d7445deff0
parentd2126027cef86a3a6cf3e22ec551156636e4d9b8
Use 32-bit visual by default if available.

With this patch, we use 32-bit visuals per default whenever it is
available. Otherwise, we fall back to the actual root window's
depth, which will typically be 24-bit.

Before this patch, we already used 32-bit depth for containers with
a window that uses 32-bit. However, this means that we didn't use
32-bit for split parent containers on which decoration is drawn.
For 32-bit windows using transparency, this caused a graphical glitch
because the decoration pixmap behind it would show through. This
behavior is fixed with this change.

relates to #1278
include/libi3.h
include/xcb.h
libi3/draw_util.c
src/con.c
src/main.c
src/x.c
src/xcb.c