如何开始编写合成WM? [英] How to get started writing a compositing WM?
问题描述
我想写一个基本的硬件加速的窗口管理器,所以我一直在寻找一些入门指南,但是只能找到
I would like to write a basic hardware-accelerated window manager, so I've been looking for some documentation on how to get started, but I've only managed to find this tutorial, which uses an outdated version of Clutter and won't build with any version currently available. Are there any other good resources for how to do this, or alternatively, a really bare-bones compositing WM to look at the source of?
推荐答案
您的问题有两个部分:1)如何编写WM 2)如何编写复合管理器
There are two parts in your question: 1) How to write WM 2) how to write composite manager
一些链接有助于理解第二部分(除了xcompmgr源代码):
Some links to help understand part two (in addition to xcompmgr source):
- http://www.talisman.org/~erlkonig/misc/x11-composite-tutorial/(使用Qt,但非常通用且底层)
- https://github.com/gustavosbarreto/compmgr
- http://projects.mini-dweeb.org/projects/unagi
- http://www.talisman.org/~erlkonig/misc/x11-composite-tutorial/ (Uses Qt, but very generic and low level)
- https://github.com/gustavosbarreto/compmgr
- http://projects.mini-dweeb.org/projects/unagi
窗口管理器,第一部分":
Window manager, "part one":
- 我在JavaScript中有简单的〜100 loc wm: https://github.com/sidorares/node-x11/blob/master/examples/windowmanager/wm.js
- 另一个极简主义的wm(用C语言编写),很适合作为参考: https://code .google.com/p/winmalist/
- 最重要的关键字:
SubstructureRedirect
事件掩码.一点文档
- I have simple ~100 loc wm in JavaScript: https://github.com/sidorares/node-x11/blob/master/examples/windowmanager/wm.js
- another minimalist wm (in C), good to start as a reference: https://code.google.com/p/winmalist/
- most important keyword:
SubstructureRedirect
event mask. A bit of documentation here
这篇关于如何开始编写合成WM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!