diff options
author | Lucas de Sena <lucas@seninha.org> | 2023-04-05 17:11:49 -0300 |
---|---|---|
committer | Rafael Marçalo <raroma09@gmail.com> | 2023-04-09 00:09:26 +0100 |
commit | 47a29cb0e3f60270a71fd5fe49dc359179baa92b (patch) | |
tree | 33a54607f3b3322992457d86e17227e19b57bd19 /util.c | |
parent | ef8a3a73913a2ff294682612f1512891aae76252 (diff) |
fix BadMatch error when embedding on some windows
When embedded into another window, dmenu will fail with the BadMatch
error if that window have not the same colormap/depth/visual as the
root window.
That happens because dmenu inherits the colormap/depth/visual from
its parent, but draws on a pixmap created based on the root window
using a GC created for the root window (see drw.c). A BadMatch will
occur when copying the content of the pixmap into dmenu's window.
A solution is to create dmenu's window inside root and then reparent
it if embeded.
See this mail[1] on ports@openbsd.org mailing list for context.
[1]: https://marc.info/?l=openbsd-ports&m=168072150814664&w=2
Diffstat (limited to 'util.c')
0 files changed, 0 insertions, 0 deletions