问题
I adopted the code from this answer in order to draw an overlay window, which stays on top of all windows, always. But I find that this window keeps flickering whenever there is a keypress or a button click. I wanted to know if this can be stopped somehow. Increasing the time did not help me, as my terminal was frozen for few seconds when I increased time to 5000000000
The code was tested on Ubuntu 16.04 LTS.
回答1:
I could not find a solution using the XComposite
suite of functions. However, you can easily achieve the same effect with (in my opinion) much more flexibility and pure X11 via CWOverrideRedirect
. You can see example usage for it here: https://stackoverflow.com/a/57780772/4204557
来源:https://stackoverflow.com/questions/54077129/overlay-window-in-x11-keeps-flickering