Overlay Window in x11 keeps Flickering

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 06:19:26

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!