How does a window manager register itself with the X Server?

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

Nick Beeuwsaert

Posted 2011-09-08T21:20:16.910

Reputation: 143

1The source code of dwm would be useful to read -- the whole window manager is just over 2000 lines, although lacking replace. Metacity's src/core/screen.c:322 too. (I'm only suggesting as a practical example, not as documentation.) – user1686 – 2011-09-08T21:32:24.337

Answers

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.

dvd

Posted 2011-09-08T21:20:16.910

Reputation: 212