4 ms·
It's even sillier than that. It just retrieves the terminal window with XGetInputFocus, and then stomps on top of another client's window, along with a pile of
by Jasper_ 11y ago
It's even sillier than that. It just retrieves the terminal window with XGetInputFocus, and then stomps on top of another client's window, along with a pile of heuristics to prevent drawing on top of tabs, scrollbars, etc.
https://github.com/shinh/w3m/blob/d286acbf58b72d05a55453c134216d63273f3b63/w3mimg/x11/x11_w3mimg.c#L778-L806 https://github.com/shinh/w3m/blob/d286acbf58b72d05a55453c134...
- IgorPartola 11y agoAfter reading your comment all I can think of is: this is why we can't have nice things.
- iso-8859-1 11y agonotty will support doing this cleanly in the future: https://github.com/withoutboats/notty https://github.com/withoutboats/notty
- truncate 11y agoThat's one of the craziest hack I've seen in while to get stuff done! And this kind of makes me happy.
- cyphar 11y agoYes, that is horrible. But also goddamn awesome. Sure, I'd never think of doing something similar where it was critical, but you've got to admit that is a fairly clever hack.