Creating a window manager for Linux

后端 未结 8 755
囚心锁ツ
囚心锁ツ 2020-12-23 10:45

I want to create a simple stacking window manager (in C) for private use, mainly for the purpose of learning and challenging myself.

I\'ve looked throug

相关标签:
8条回答
  • 2020-12-23 11:07

    A very minimalistic WM is wm2. I haven't read the source code and hence I don't know if it is a teaching example. Of course you can use libraries that already do much of the abstraction and drawing work for you like gdk and gtk. But since this project is only for personal learning, I'd go the hard way and use Xlib directly.

    Here are some links that might be useful for you:

    • The Xlib Manual
    • Xlib Programming Manual (O'Reilly & Associates, Inc.)
    • Inter-Client Communication Conventions Manual
    • Extended Window Manager Hints
    0 讨论(0)
  • 2020-12-23 11:11

    For the sake of understanding I would also be interested in suggestions how to start a window manager from scratch

    You may want to have a look at the aewm window manager. The code is small and it does the basics quite well. It's written in C and uses Xlib.

    http://www.red-bean.com/decklin/aewm/

    0 讨论(0)
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题