问题描述
我采用了此答案中的代码,以便绘制覆盖窗口,它始终位于所有窗口的顶部.但是我发现,每当按键或单击按钮时,此窗口就会一直闪烁.我想知道这是否可以通过某种方式停止.增加时间对我无济于事,因为当我增加时间到5000000000
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
该代码已在 Ubuntu 16.04 LTS 上进行了测试.
The code was tested on Ubuntu 16.04 LTS.
推荐答案
我找不到使用XComposite
函数集的解决方案.但是,您可以通过CWOverrideRedirect
以更大的灵活性和纯X11轻松获得相同的效果.您可以在此处查看示例用法: https://stackoverflow.com/a/57780772/4204557
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
这篇关于x11中的重叠窗口不断闪烁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!