@ -741,15 +741,6 @@ fbdev_restore(struct weston_compositor *compositor)
weston_launcher_restore ( compositor - > launcher ) ;
weston_launcher_restore ( compositor - > launcher ) ;
}
}
static void
switch_vt_binding ( struct weston_keyboard * keyboard , uint32_t time ,
uint32_t key , void * data )
{
struct weston_compositor * compositor = data ;
weston_launcher_activate_vt ( compositor - > launcher , key - KEY_F1 + 1 ) ;
}
static struct fbdev_backend *
static struct fbdev_backend *
fbdev_backend_create ( struct weston_compositor * compositor , int * argc , char * argv [ ] ,
fbdev_backend_create ( struct weston_compositor * compositor , int * argc , char * argv [ ] ,
struct weston_config * config ,
struct weston_config * config ,
@ -757,7 +748,6 @@ fbdev_backend_create(struct weston_compositor *compositor, int *argc, char *argv
{
{
struct fbdev_backend * backend ;
struct fbdev_backend * backend ;
const char * seat_id = default_seat ;
const char * seat_id = default_seat ;
uint32_t key ;
weston_log ( " initializing fbdev backend \n " ) ;
weston_log ( " initializing fbdev backend \n " ) ;
@ -794,11 +784,8 @@ fbdev_backend_create(struct weston_compositor *compositor, int *argc, char *argv
backend - > prev_state = WESTON_COMPOSITOR_ACTIVE ;
backend - > prev_state = WESTON_COMPOSITOR_ACTIVE ;
backend - > use_pixman = ! param - > use_gl ;
backend - > use_pixman = ! param - > use_gl ;
for ( key = KEY_F1 ; key < KEY_F9 ; key + + )
weston_setup_vt_switch_bindings ( compositor ) ;
weston_compositor_add_key_binding ( compositor , key ,
MODIFIER_CTRL | MODIFIER_ALT ,
switch_vt_binding ,
compositor ) ;
if ( backend - > use_pixman ) {
if ( backend - > use_pixman ) {
if ( pixman_renderer_init ( compositor ) < 0 )
if ( pixman_renderer_init ( compositor ) < 0 )
goto out_launcher ;
goto out_launcher ;