The new framebuffer-session function allows a client to register a handler for receiving display-synchronization events.