Linux 下的透明窗口
我正在尝试找到一个跨Linux发行版的解决方案来解决使程序具有透明窗口的问题。
我现在有一些方法,可以拍摄下面窗口的屏幕截图,然后将其打印为图像的背景。 我不想使用该方法,因为我可能会在程序后台运行视频。 但如果有人知道实现这一目标的好方法,我仍然很高兴来到这里。
我尝试实现我在以下位置找到的方法: 更改 X11 Windows 属性
我无法进行任何更改,虽然我不确定 Compiz 是否正常工作。 任何帮助将不胜感激。
I am trying to find a cross linux distribution solution to the problem of making a program have transparent windows.
I now there is some methods out there, that take screen shots of the windows underneath and then print them as the background of the image. I would prefer not to uses that method because it likely that i would have video running in the background of the program. But if any one knows of a good way to make this happen i would still be please to here about it.
I have tried to implement a method I found at :
Changing X11 Windows Properties
I couldn't get any change to happen, though I am not sure if Compiz was working correctly.
Any help would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以查看 X 终端模拟器、KDE 的 KTerm 或 gnome 的 Gnome 终端(取决于您的目标平台)的代码。 我认为这些是实现透明度的应用程序的最佳示例。 我认为您甚至可以在该代码中找到在 compiz 不可用时获得透明度的解决方案。
You can take a look at the code of the X terminal emulators, KTerm for KDE or Gnome Terminal for gnome (depending of your target platform). I think these are the best examples of apps that implement transparency. I think that you can even find in that code solutions for getting transparency when compiz is not available.