Lines Matching full:output
4 Subject: [PATCH 13/93] Support setting output flow direction
6 Set env "WESTON_OUTPUT_FLOW" to change output flow direction:
27 @@ -135,6 +135,8 @@ struct output {
39 struct output *output = data;
40 + struct desktop *desktop = output->desktop;
43 output->x = x;
44 output->y = y;
46 + if (y && output->panel) {
48 + surface = window_get_wl_surface(output->panel->window);
50 + output->output, surface);
53 + if (!y && desktop->want_panel && !output->panel) {
55 + output->panel = panel_create(desktop, output);
56 + surface = window_get_wl_surface(output->panel->window);
58 + output->output, surface);
61 if (output->panel)
62 window_set_buffer_transform(output->panel->window, transform);
63 if (output->background)
65 if (!output)
68 + output->desktop = desktop;
69 output->output =
71 output->server_output_id = id;
110 + WESTON_DESKTOP_SHELL_PANEL_POSITION_TOP && !surface->output->y) {
111 get_output_work_area(shsurf->shell, surface->output, &area);
118 + struct weston_output *output;
120 + output = weston_head_from_resource(output_resource)->output;
121 + sh_output = find_shell_output_from_weston_output(shell, output);
124 + /* HACK: Re-set to destroy output panel */
137 - surface->output = weston_head_from_resource(output_resource)->output;
138 + surface->output = output;
139 weston_view_set_output(view, surface->output);
141 - sh_output = find_shell_output_from_weston_output(shell, surface->output);
143 /* The output already has a panel, tell our helper
185 @@ -258,10 +258,6 @@ weston_mode_switch_finish(struct weston_output *output,
194 * \ingroup output
196 @@ -272,7 +268,6 @@ weston_output_mode_set_native(struct weston_output *output,
202 if (!output->switch_mode)
204 @@ -288,14 +283,13 @@ weston_output_mode_set_native(struct weston_output *output,
208 - old_width = output->width;
209 output->native_mode = mode;
210 output->native_scale = scale;
212 weston_mode_switch_finish(output, mode_changed, scale_changed);
215 - weston_compositor_reflow_outputs(output->compositor, output, output->width - old_width);
216 + weston_compositor_reflow_outputs(output->compositor);
218 wl_signal_emit(&output->compositor->output_resized_signal, output);
222 weston_output_set_position(struct weston_output *output, int x, int y);
231 struct weston_output *output;
242 wl_list_for_each(output, &compositor->output_list, link) {
243 - if (output == resized_output) {
245 + if (output->destroying)
250 - weston_output_set_position(output, output->x + delta_width, output->y);
251 - output->dirty = 1;
257 + next_x += output->width;
259 + next_y += output->height;
261 + weston_output_set_position(output, x, y);
265 @@ -6583,6 +6576,8 @@ weston_output_transform_scale_init(struct weston_output *output, uint32_t tra…
267 weston_output_init_geometry(struct weston_output *output, int x, int y)
269 + output->dirty = 1;
271 output->x = x;
272 output->y = y;
274 @@ -6616,8 +6611,6 @@ weston_output_set_position(struct weston_output *output, int x, int y)
276 weston_output_init_geometry(output, x, y);
278 - output->dirty = 1;
280 /* Move views on this output. */
281 wl_signal_emit(&output->compositor->output_moved_signal, output);
283 @@ -6909,7 +6902,7 @@ weston_compositor_remove_output(struct weston_output *output)
285 weston_presentation_feedback_discard_list(&output->feedback_list);
287 - weston_compositor_reflow_outputs(compositor, output, -output->width);
290 wl_list_remove(&output->link);
291 wl_list_insert(compositor->pending_output_list.prev, &output->link);
292 @@ -6983,7 +6976,7 @@ weston_output_set_transform(struct weston_output *output,
294 weston_output_init_geometry(output, output->x, output->y);
296 - output->dirty = 1;
297 + weston_compositor_reflow_outputs(output->compositor);
299 /* Notify clients of the change for output transform. */
300 wl_list_for_each(head, &output->head_list, output_link) {
301 @@ -7346,7 +7339,6 @@ weston_output_enable(struct weston_output *output)
303 assert(output->transform != UINT32_MAX);
305 - output->dirty = 1;
306 output->original_scale = output->scale;
308 wl_signal_init(&output->frame_signal);
309 @@ -7385,6 +7377,8 @@ weston_output_enable(struct weston_output *output)
310 output->name, head_names);
313 + weston_compositor_reflow_outputs(output->compositor);