Re: [PATCH weston v2] compositor: allow to control the vt switching

2016-06-29 Thread Giulio Camuffo
2016-06-23 9:37 GMT+02:00 Daniel Stone : > Hi Guilio, > > On 5 June 2016 at 03:48, Giulio Camuffo wrote: >> @@ -97,8 +97,17 @@ switch_vt_binding(struct weston_keyboard *keyboard, >> uint32_t time, uint32_t key, void *data) >> { >> struct weston_compositor *compositor = d

Re: [PATCH weston v2] compositor: allow to control the vt switching

2016-06-23 Thread Daniel Stone
Hi Guilio, On 5 June 2016 at 03:48, Giulio Camuffo wrote: > @@ -97,8 +97,17 @@ switch_vt_binding(struct weston_keyboard *keyboard, > uint32_t time, uint32_t key, void *data) > { > struct weston_compositor *compositor = data; > + struct weston_launcher *launcher =

[PATCH weston v2] compositor: allow to control the vt switching

2016-06-04 Thread Giulio Camuffo
A compositor may want to control the vt switching, for example to ensure to have a lock screen before it. To enable that add a vfunc that will be called when CTRL+ALT+FN is pressed. The default behavior is to do the switching, but the user can change it by using the new weston_compositor_set_vt_swi