mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-09 15:19:11 +02:00
Apply clang-format
This commit is contained in:
parent
7d175afc07
commit
9623ccd4d4
3 changed files with 13 additions and 12 deletions
|
|
@ -718,8 +718,8 @@ keybinding_move_view_to_next_output(struct cg_server *server) {
|
|||
->focused_tile->view = view;
|
||||
view->workspace = server->curr_output
|
||||
->workspaces[server->curr_output->curr_workspace];
|
||||
view->tile=view->workspace->focused_tile;
|
||||
view_maximize(view,view->tile);
|
||||
view->tile = view->workspace->focused_tile;
|
||||
view_maximize(view, view->tile);
|
||||
seat_set_focus(server->seat, view);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
17
output.c
17
output.c
|
|
@ -266,7 +266,7 @@ scan_out_primary_view(struct cg_output *output) {
|
|||
|
||||
wlr_output_attach_buffer(wlr_output, &surface->buffer->base);
|
||||
if(!wlr_output_test(wlr_output)) {
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
return wlr_output_commit(wlr_output);
|
||||
}
|
||||
|
|
@ -376,12 +376,13 @@ handle_output_commit(struct wl_listener *listener, void *data) {
|
|||
return;
|
||||
}
|
||||
|
||||
if(event->committed & (WLR_OUTPUT_STATE_TRANSFORM | WLR_OUTPUT_STATE_SCALE)) {
|
||||
if(event->committed &
|
||||
(WLR_OUTPUT_STATE_TRANSFORM | WLR_OUTPUT_STATE_SCALE)) {
|
||||
struct cg_view *view;
|
||||
wl_list_for_each(view, &output->workspaces[output->curr_workspace]->views,
|
||||
link) {
|
||||
wl_list_for_each(
|
||||
view, &output->workspaces[output->curr_workspace]->views, link) {
|
||||
if(view_is_visible(view)) {
|
||||
view_maximize(view,view->tile);
|
||||
view_maximize(view, view->tile);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -398,9 +399,9 @@ handle_output_mode(struct wl_listener *listener, void *data) {
|
|||
struct cg_view *view;
|
||||
wl_list_for_each(view, &output->workspaces[output->curr_workspace]->views,
|
||||
link) {
|
||||
if(view_is_visible(view)) {
|
||||
view_maximize(view,view->tile);
|
||||
}
|
||||
if(view_is_visible(view)) {
|
||||
view_maximize(view, view->tile);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
4
view.c
4
view.c
|
|
@ -355,8 +355,8 @@ view_map(struct cg_view *view, struct wlr_surface *surface,
|
|||
} else
|
||||
#endif
|
||||
{
|
||||
view->tile=view->workspace->focused_tile;
|
||||
view_maximize(view,view->tile);
|
||||
view->tile = view->workspace->focused_tile;
|
||||
view_maximize(view, view->tile);
|
||||
wl_list_insert(&ws->views, &view->link);
|
||||
}
|
||||
seat_set_focus(output->server->seat, view);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue