I implemented compositor protocol and now clients from separate processes can be connected and disconnected.