screen_register_window_manager()

Register a context as the window manager of a display

Synopsis:

#include <screen/screen.h>
int screen_register_window_manager(screen_context_t ctx,
                                   screen_display_t disp)

Arguments:

ctx
The context which is registering as the window manager.
disp
The display which the context wants to manage.

Library:

libscreen

Description:

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.

Returns:

0 if successful, or -1 if an error occurred (errno is set; refer to errno.h for more details).