Lines Matching refs:wet
1416 simple_head_enable(struct wet_compositor *wet, struct weston_head *head) in simple_head_enable() argument
1421 output = weston_compositor_create_output_with_head(wet->compositor, in simple_head_enable()
1426 wet->init_failed = true; in simple_head_enable()
1431 if (wet->simple_output_configure) in simple_head_enable()
1432 ret = wet->simple_output_configure(output); in simple_head_enable()
1437 wet->init_failed = true; in simple_head_enable()
1446 wet->init_failed = true; in simple_head_enable()
1451 wet_head_tracker_create(wet, head); in simple_head_enable()
1476 struct wet_compositor *wet = to_wet_compositor(compositor); in simple_heads_changed() local
1483 while ((head = weston_compositor_iterate_heads(wet->compositor, head))) { in simple_heads_changed()
1490 simple_head_enable(wet, head); in simple_heads_changed()
1507 struct wet_compositor *wet = to_wet_compositor(compositor); in wet_set_simple_head_configurator() local
1509 wet->simple_output_configure = fn; in wet_set_simple_head_configurator()
1511 wet->heads_changed_listener.notify = simple_heads_changed; in wet_set_simple_head_configurator()
1513 &wet->heads_changed_listener); in wet_set_simple_head_configurator()
1722 struct wet_compositor *wet = to_wet_compositor(output->compositor); in drm_backend_output_configure() local
1743 } else if (wet->drm_use_current_mode || strcmp(s, "current") == 0) { in drm_backend_output_configure()
1926 wet_compositor_find_layoutput(struct wet_compositor *wet, const char *name) in wet_compositor_find_layoutput() argument
1930 wl_list_for_each(lo, &wet->layoutput_list, compositor_link) in wet_compositor_find_layoutput()
1938 wet_compositor_layoutput_add_head(struct wet_compositor *wet, in wet_compositor_layoutput_add_head() argument
1945 lo = wet_compositor_find_layoutput(wet, output_name); in wet_compositor_layoutput_add_head()
1947 lo = wet_compositor_create_layoutput(wet, output_name, section); in wet_compositor_layoutput_add_head()
1959 wet_compositor_destroy_layout(struct wet_compositor *wet) in wet_compositor_destroy_layout() argument
1965 &wet->layoutput_list, compositor_link) { in wet_compositor_destroy_layout()
1975 drm_head_prepare_enable(struct wet_compositor *wet, in drm_head_prepare_enable() argument
1983 section = drm_config_find_controlling_output_section(wet->config, name); in drm_head_prepare_enable()
2001 wet_compositor_layoutput_add_head(wet, output_name, in drm_head_prepare_enable()
2005 wet_compositor_layoutput_add_head(wet, name, NULL, head); in drm_head_prepare_enable()
2010 drm_head_should_force_enable(struct wet_compositor *wet, in drm_head_should_force_enable() argument
2017 section = drm_config_find_controlling_output_section(wet->config, name); in drm_head_should_force_enable()
2103 drm_process_layoutput(struct wet_compositor *wet, struct wet_layoutput *lo) in drm_process_layoutput() argument
2134 if (!weston_compositor_find_output_by_name(wet->compositor, lo->name)) in drm_process_layoutput()
2166 drm_process_layoutputs(struct wet_compositor *wet) in drm_process_layoutputs() argument
2171 wl_list_for_each(lo, &wet->layoutput_list, compositor_link) { in drm_process_layoutputs()
2175 if (drm_process_layoutput(wet, lo) < 0) { in drm_process_layoutputs()
2209 struct wet_compositor *wet = to_wet_compositor(compositor); in drm_heads_changed() local
2223 forced = drm_head_should_force_enable(wet, head); in drm_heads_changed()
2226 drm_head_prepare_enable(wet, head); in drm_heads_changed()
2237 if (drm_process_layoutputs(wet) < 0) in drm_heads_changed()
2238 wet->init_failed = true; in drm_heads_changed()
2528 struct wet_compositor *wet = to_wet_compositor(c); in load_drm_backend() local
2531 wet->drm_use_current_mode = false; in load_drm_backend()
2541 { WESTON_OPTION_BOOLEAN, "current-mode", 0, &wet->drm_use_current_mode }, in load_drm_backend()
2561 wet->heads_changed_listener.notify = drm_heads_changed; in load_drm_backend()
2563 &wet->heads_changed_listener); in load_drm_backend()
3247 struct wet_compositor wet = { 0 }; in wet_main() local
3277 wl_list_init(&wet.layoutput_list); in wet_main()
3361 wet.config = config; in wet_main()
3362 wet.parsed_options = NULL; in wet_main()
3387 wet.compositor = weston_compositor_create(display, &wet); in wet_main()
3388 if (wet.compositor == NULL) { in wet_main()
3392 segv_compositor = wet.compositor; in wet_main()
3410 if (weston_compositor_init_config(wet.compositor, config) < 0) in wet_main()
3414 &wet.compositor->require_input, true); in wet_main()
3420 if (load_backend(wet.compositor, backend, &argc, argv, config) < 0) { in wet_main()
3427 weston_compositor_flush_heads_changed(wet.compositor); in wet_main()
3432 if (wet.init_failed && wl_list_empty(&wet.compositor->output_list)) in wet_main()
3440 wet.compositor->idle_time = idle_time; in wet_main()
3441 wet.compositor->default_pointer_grab = NULL; in wet_main()
3442 wet.compositor->exit = handle_exit; in wet_main()
3444 weston_compositor_log_capabilities(wet.compositor); in wet_main()
3474 if (wet_load_shell(wet.compositor, shell, &argc, argv) < 0) in wet_main()
3478 if (load_modules(wet.compositor, modules, &argc, argv, &xwayland) < 0) in wet_main()
3481 if (load_modules(wet.compositor, option_modules, &argc, argv, &xwayland) < 0) in wet_main()
3489 if (wet_load_xwayland(wet.compositor) < 0) in wet_main()
3496 wl_list_for_each(seat, &wet.compositor->seat_list, link) { in wet_main()
3512 weston_compositor_wake(wet.compositor); in wet_main()
3526 ret = wet.compositor->exit_code; in wet_main()
3529 wet_compositor_destroy_layout(&wet); in wet_main()
3532 free(wet.parsed_options); in wet_main()
3538 weston_compositor_destroy(wet.compositor); in wet_main()