【发布时间】:2023-03-15 03:11:01
【问题描述】:
虽然以其他方式使用指针,但到目前为止我看到的所有 Xlib 函数都通过值而不是通过引用传递它们的 Window 结构。例如:
https://tronche.com/gui/x/xlib/ICC/client-to-window-manager/XGetClassHint.html
https://tronche.com/gui/x/xlib/window/XDestroyWindow.html
这有什么特别的理由吗?特别是在 XGetClassHint 的情况下,第一个和第三个参数是通过引用传递的,而第二个不是。
【问题讨论】:
-
Window是服务器端的东西,不是吗?