Re: [RFC weston] libweston-desktop: Add size_requested API

2017-06-23 Thread Daniel Stone
Hi Quentin, On 21 March 2017 at 11:53, Quentin Glidic wrote: > Some shells (wl_shell) does not let the compositor control the surface > state and instead force one. Therefore, they cannot call > {maximized,fullscreen}_requested as these imply the compositor can still > opt-out. > This new callbac

Re: [PATCH weston] libweston-desktop/xdg-shell: Consolidate configure event sending

2017-06-23 Thread Daniel Stone
Hi Quentin, On 13 April 2017 at 20:15, Quentin Glidic wrote: > When switching a state twice in a row, we were overwriting the old value > without setting it back, sending a wrong state to the client. > > Now we update our requested state, then check if we need to schedule a > configure event, if

Re: [PATCH weston] input: Do not override keyboard focus on restore

2017-06-23 Thread Daniel Stone
Hi Quentin, On 22 March 2017 at 16:06, Quentin Glidic wrote: > @@ -2070,7 +2070,8 @@ notify_keyboard_focus_in(struct weston_seat *seat, > struct wl_array *keys, > > if (surface) { > wl_list_remove(&seat->saved_kbd_focus_listener.link); > - weston_keyboard_se

Re: [PATCH weston] libweston-desktop/xdg_shell_v6: Send error on wrongly-sized buffer

2017-06-23 Thread Daniel Stone
Hi Quentin, On 10 March 2017 at 10:50, Quentin Glidic wrote: > @@ -634,22 +633,27 @@ weston_desktop_xdg_toplevel_committed(struct > weston_desktop_xdg_toplevel *toplev > + if ((toplevel->next_state.maximized || > toplevel->next_state.fullscreen) && > + (toplevel->requested_size.