小编mel*_*ort的帖子

如何在 Linux (X) 中获取准确的窗口信息(尺寸等)?

如何在 Linux 中获取准确的窗口信息?我知道我可以使用 wmctrl 来获取窗口的大小,但窗口的实际大小可能会因窗口装饰而有所不同。我需要以下信息和方法:

* precise window dimensions
* precise available screen space (excluding panels like gnome-panel)
* the ability to set a window to be a certain size, including decorations
Run Code Online (Sandbox Code Playgroud)

什么是最好的方法来做到这一点?

提前致谢!

linux

25
推荐指数
2
解决办法
2万
查看次数

标签 统计

linux ×1