[dev] [PATCH] dwm issues with mismatched depth

From: stefan11111github=gmail.com <stefan>
Date: Sun, 20 Sep 2026 13:24:01 +0300

Hello suckless!

Posting from a different address, since I no longer have access to my older
one.

I found out this bug when testing running the X server at different depths.

When a client picks a visual with masks different to dwm's visual, the
border color's pixels are painted the wrong color.

For example, with stock dwm without the alpha patch, if the root window is
depth 30, dwm will pick a depth 30 visual. If a client picks a depth 32
composite visual, its border color becomes green instead of the default
gray.

If dwm is patched with the alpha patch, then it will pick a depth 32
composite visual, and clients that pick a depth 30 visual have the border
color red.

I have added a patch for this issue as an attachment.
Note that the patch is not written by me.
It is not portable, since it uses builtins.

Received on Sun Sep 20 2026 - 12:24:01 CEST

This archive was generated by hypermail 2.3.0 : Sun Sep 20 2026 - 12:36:08 CEST