diff options
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 'dmenu.1%2525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d64d68b7de9fb413b147124f0c76b65d5f3070430%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fid%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253deaf89093783733bb6b5da6fa87fd6bdcd6d68996%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fid%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253deaf89093783733bb6b5da6fa87fd6bdcd6d68996%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fshowmsg%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d1%2525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d8df553e0048733bab4bc85a6b76bcfd44c046e71%2525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fshowmsg%2525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d1%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fshowmsg%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d1%2525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253daa36bbfb852a1245e304c3164ea0ea7809bd8f06%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fid%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253daa36bbfb852a1245e304c3164ea0ea7809bd8f06%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fid%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253daa36bbfb852a1245e304c3164ea0ea7809bd8f06%2525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253daa36bbfb852a1245e304c3164ea0ea7809bd8f06%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fid%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525253daa36bbfb852a1245e304c3164ea0ea7809bd8f06%252525252525252525252525252525252525252525252525252525252525252525252525252525253fid%252525252525252525252525252525252525252525252525252525252525252525252525252525253d8df553e0048733bab4bc85a6b76bcfd44c046e71%252525252525252525252525252525252525252525252525252525252525252525252525253fid2%252525252525252525252525252525252525252525252525252525252525252525252525253d8df553e0048733bab4bc85a6b76bcfd44c046e71%2525252525252525252525252525252525252525252525252525252525252525252525253fid2%2525252525252525252525252525252525252525252525252525252525252525252525253d8df553e0048733bab4bc85a6b76bcfd44c046e71%252525252525252525252525252525252525252525252525252525252525252525253fshowmsg%252525252525252525252525252525252525252525252525252525252525252525253d1%25252525252525252525252525252525252525252525252525252525253fid%25252525252525252525252525252525252525252525252525252525253d8df553e0048733bab4bc85a6b76bcfd44c046e71%252525252525252525252525252525252525252525252525253fid%252525252525252525252525252525252525252525252525253daa36bbfb852a1245e304c3164ea0ea7809bd8f06%2525252525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525252525253d8df553e0048733bab4bc85a6b76bcfd44c046e71%25252525252525252525252525252525252525252525253fid%25252525252525252525252525252525252525252525253d7ab0cb5ef0e19352fc5d64ae0d57a5cf4540acbf%252525252525252525252525252525252525252525253fid%252525252525252525252525252525252525252525253d7ab0cb5ef0e19352fc5d64ae0d57a5cf4540acbf%25252525252525252525252525252525252525253fshowmsg%25252525252525252525252525252525252525253d1%25252525252525252525252525252525253fid2%25252525252525252525252525252525253d8df553e0048733bab4bc85a6b76bcfd44c046e71%252525252525252525252525252525253fid2%252525252525252525252525252525253d8df553e0048733bab4bc85a6b76bcfd44c046e71%252525252525252525252525253fshowmsg%252525252525252525252525253d1%252525252525252525253fshowmsg%252525252525252525253d1%25252525252525253fid%25252525252525253d8df553e0048733bab4bc85a6b76bcfd44c046e71%252525252525253fid%252525252525253d7ab0cb5ef0e19352fc5d64ae0d57a5cf4540acbf%2525252525253fid%2525252525253d7ab0cb5ef0e19352fc5d64ae0d57a5cf4540acbf%25252525253fid%25252525253d0fe460dbd469a1d5b6a7140d0e1801935e4a923b%252525253fid%252525253d0fe460dbd469a1d5b6a7140d0e1801935e4a923b&id2%252525253ddfbbf7f6e1b22ccf9e5a45d77ee10995577fb4fc%2525253fid%2525253d0fe460dbd469a1d5b6a7140d0e1801935e4a923b&id2%2525253ddfbbf7f6e1b22ccf9e5a45d77ee10995577fb4fc%25253fid%25253d0fe460dbd469a1d5b6a7140d0e1801935e4a923b%253fid%253d0fe460dbd469a1d5b6a7140d0e1801935e4a923b%3fid%3d0fe460dbd469a1d5b6a7140d0e1801935e4a923b?id=0fe460dbd469a1d5b6a7140d0e1801935e4a923b')
0 files changed, 0 insertions, 0 deletions