本文介绍了如何开始编写合成WM?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想写一个基本的硬件加速的窗口管理器,所以我一直在寻找一些入门指南,但是只能找到,它使用了过时的Clutter版本,并且无法使用当前可用的任何版本进行构建.是否还有其他良好的资源来执行此操作,或者是否有将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/ (Uses Qt, but very generic and low level)
  • https://github.com/gustavosbarreto/compmgr
  • http://projects.mini-dweeb.org/projects/unagi

窗口管理器,第一部分":

Window manager, "part one":

  • 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-20 05:20