Linux 下的透明窗口

发布于 2024-07-25 07:23:45 字数 347 浏览 1 评论 0原文

我正在尝试找到一个跨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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

流年里的时光 2024-08-01 07:23:45

您可以查看 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文