diff options
Diffstat (limited to 'present/present_screen.c')
-rw-r--r-- | present/present_screen.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/present/present_screen.c b/present/present_screen.c index 8ad14ad17..c7e37c5fd 100644 --- a/present/present_screen.c +++ b/present/present_screen.c @@ -239,7 +239,28 @@ present_screen_priv_init(ScreenPtr screen) } /* - * Initialize a screen for use with present + * Initialize a screen for use with present in window flip mode (wnmd) + */ +int +present_wnmd_screen_init(ScreenPtr screen, present_wnmd_info_ptr info) +{ + if (!present_screen_register_priv_keys()) + return FALSE; + + if (!present_screen_priv(screen)) { + present_screen_priv_ptr screen_priv = present_screen_priv_init(screen); + if (!screen_priv) + return FALSE; + + screen_priv->wnmd_info = info; + present_wnmd_init_mode_hooks(screen_priv); + } + + return TRUE; +} + +/* + * Initialize a screen for use with present in default screen flip mode (scmd) */ int present_screen_init(ScreenPtr screen, present_screen_info_ptr info) |