mirror of
https://github.com/labwc/labwc.git
synced 2026-04-09 08:21:18 -04:00
output.c: fix formatting
This commit is contained in:
parent
fc3a170c78
commit
ebd167a5eb
1 changed files with 10 additions and 12 deletions
12
src/output.c
12
src/output.c
|
|
@ -870,8 +870,8 @@ static void output_config_apply(struct server *server,
|
|||
int32_t refresh = head->state.custom_mode.refresh;
|
||||
wlr_output_set_custom_mode(o, width, height, refresh);
|
||||
}
|
||||
wlr_output_layout_move(server->output_layout, o, head->state.x,
|
||||
head->state.y);
|
||||
wlr_output_layout_move(server->output_layout, o,
|
||||
head->state.x, head->state.y);
|
||||
wlr_output_set_scale(o, head->state.scale);
|
||||
wlr_output_set_transform(o, head->state.transform);
|
||||
}
|
||||
|
|
@ -918,15 +918,14 @@ static struct wlr_output_configuration_v1 *create_output_config(struct server *s
|
|||
|
||||
struct output *output;
|
||||
wl_list_for_each(output, &server->outputs, link) {
|
||||
struct wlr_output_configuration_head_v1 *head
|
||||
= wlr_output_configuration_head_v1_create(config,
|
||||
struct wlr_output_configuration_head_v1 *head =
|
||||
wlr_output_configuration_head_v1_create(config,
|
||||
output->wlr_output);
|
||||
if(head == NULL) {
|
||||
if (head == NULL) {
|
||||
warn("wlr_output_configuration_head_v1_create() returned NULL");
|
||||
wlr_output_configuration_v1_destroy(config);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
struct wlr_box *box = wlr_output_layout_get_box(server->output_layout,
|
||||
output->wlr_output);
|
||||
if(box != NULL) {
|
||||
|
|
@ -956,7 +955,6 @@ static void handle_output_layout_change(struct wl_listener *listener, void *data
|
|||
|
||||
void output_manager_init(struct server *server)
|
||||
{
|
||||
info("calling %s", __func__);
|
||||
server->output_manager = wlr_output_manager_v1_create(server->wl_display);
|
||||
|
||||
server->output_layout_change.notify = handle_output_layout_change;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue