Register a context as the window manager of a display
#include <screen/screen.h>
int screen_register_window_manager(screen_context_t ctx, screen_display_t disp)
Function Type: Flushing Execution
This function registers the context as the window manager of a display. The context must have SCREEN_WINDOW_MANAGER_CONTEXT privileges. The display must not currently have a window manager.
This function is associated with the preprocessor definition screen_register_window_manager.
0 if successful, or -1 if an error occurred (errno is set; refer to errno.h for more details).