In Xul, within a transparent window, how do I hide the mouse cursor?

a 夏天 提交于 2019-12-12 02:32:37

问题


I have a Xul window that is transparent, and I need to hide the mouse cursor after 1 second. Applying cursor: none will not work, the mouse cursor still shows up in the transparent part of the window.

Any idea how to get rid of the mouse cursor?


回答1:


Your OS generally won't even bother to send mouse events to a completely transparent (area of your) window; as far as it's concerned, your window isn't there. However if your OS allows it, a nearly transparent window might work.



来源:https://stackoverflow.com/questions/4960411/in-xul-within-a-transparent-window-how-do-i-hide-the-mouse-cursor

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