Lines Matching refs:surface
4 Subject: [PATCH 23/93] HACK: Support setting surface flags activate and alpha
6 Support setting surface flags activate and alpha through app_id or
19 libweston/desktop/surface.c | 193 ++++++++++++++++++++++++++++++++++
30 + if (surface->flags & SURFACE_STAY_ON_TOP)
32 + else if (surface->flags & SURFACE_STAY_ON_BOTTOM)
62 + if (view->surface->flags & SURFACE_NO_FOCUS)
163 struct wl_signal destroy_signal; /* callback argument: this surface */
169 + /* Hacky surface flags */
180 @@ -415,7 +415,7 @@ weston_view_create(struct weston_surface *surface)
185 + view->alpha = surface->alpha;
190 surface->compositor = compositor;
191 surface->ref_count = 1;
193 + surface->alpha = 1.0;
195 surface->buffer_viewport.buffer.transform = WL_OUTPUT_TRANSFORM_NORMAL;
196 surface->buffer_viewport.buffer.scale = 1;
197 surface->buffer_viewport.buffer.src_width = wl_fixed_from_int(-1);
202 + if (view->surface->flags & SURFACE_BLOCKED)
205 + if (view->surface->flags & SURFACE_TRANS_INPUT)
211 diff --git a/libweston/desktop/surface.c b/libweston/desktop/surface.c
213 --- a/libweston/desktop/surface.c
214 +++ b/libweston/desktop/surface.c
215 @@ -705,12 +705,202 @@ weston_desktop_surface_set_position(struct weston_desktop_surface *surface,
220 +weston_desktop_surface_set_flags(struct weston_desktop_surface *surface,
223 + struct weston_surface *wsurface = surface->surface;
278 +weston_desktop_surface_set_requests(struct weston_desktop_surface *surface,
281 + struct weston_surface *wsurface = surface->surface;
306 + weston_desktop_api_committed(surface->desktop,
307 + surface, 0, 0);
336 + if (sub->surface != wsurface)
337 + weston_surface_set_alpha(sub->surface, alpha);
342 +weston_desktop_surface_set_attrs(struct weston_desktop_surface *surface,
345 + struct weston_surface *wsurface = surface->surface;
384 +weston_desktop_surface_handle_config(struct weston_desktop_surface *surface,
394 + handled |= weston_desktop_surface_set_flags(surface, tmp);
397 + handled |= weston_desktop_surface_set_requests(surface, tmp);
400 + handled |= weston_desktop_surface_set_attrs(surface, tmp);
407 weston_desktop_surface_set_title(struct weston_desktop_surface *surface,
412 + if (weston_desktop_surface_handle_config(surface, title))
418 @@ -727,6 +917,9 @@ weston_desktop_surface_set_app_id(struct weston_desktop_surface *surface,
422 + if (weston_desktop_surface_handle_config(surface, app_id))