How to get started writing a compositing WM?

前端 未结 2 1589
忘了有多久
忘了有多久 2021-02-01 10:51

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 tutori

2条回答
  •  失恋的感觉
    2021-02-01 10:52

    There are two parts in your question: 1) How to write WM 2) how to write composite manager

    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

提交回复
热议问题