4
I was wondering how the window manager registers itself with the X server, and how it knows what process to kill when it goes about replacing the current window manager
4
I was wondering how the window manager registers itself with the X server, and how it knows what process to kill when it goes about replacing the current window manager
1
X just keep waiting for the return of the process of wm/de. Suppose you have a line of exec awesome
in your ~/.xinitrc. X will start and execute that line and monitor that process return. Try putting commands below of exec line, they'll never be parsed.
1The source code of
dwm
would be useful to read -- the whole window manager is just over 2000 lines, although lacking replace. Metacity'ssrc/core/screen.c:322
too. (I'm only suggesting as a practical example, not as documentation.) – user1686 – 2011-09-08T21:32:24.337