mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-21 21:14:18 +02:00
Apply clang-format
This commit is contained in:
parent
0b97338738
commit
24e0681579
4 changed files with 19 additions and 11 deletions
12
keybinding.c
12
keybinding.c
|
|
@ -457,8 +457,10 @@ keybinding_workspace_fullscreen(struct cg_server *server) {
|
|||
}
|
||||
|
||||
struct cg_view *it_view;
|
||||
wl_list_for_each(it_view, &output->workspaces[output->curr_workspace]->views, link) {
|
||||
it_view->tile=output->workspaces[output->curr_workspace]->focused_tile;
|
||||
wl_list_for_each(it_view,
|
||||
&output->workspaces[output->curr_workspace]->views, link) {
|
||||
it_view->tile =
|
||||
output->workspaces[output->curr_workspace]->focused_tile;
|
||||
}
|
||||
|
||||
seat_set_focus(server->seat, current_view);
|
||||
|
|
@ -606,14 +608,14 @@ keybinding_cycle_views(struct cg_server *server, bool reverse) {
|
|||
server->curr_output->workspaces[server->curr_output->curr_workspace];
|
||||
struct cg_view *current_view = curr_workspace->focused_tile->view;
|
||||
|
||||
struct cg_view *tmp_view, *next_view=NULL;
|
||||
struct cg_view *tmp_view, *next_view = NULL;
|
||||
if(reverse) {
|
||||
wl_list_for_each_reverse(tmp_view, &curr_workspace->views, link) {
|
||||
if(tmp_view == current_view) {
|
||||
continue;
|
||||
}
|
||||
if(!view_is_visible(tmp_view)) {
|
||||
next_view=tmp_view;
|
||||
next_view = tmp_view;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -623,7 +625,7 @@ keybinding_cycle_views(struct cg_server *server, bool reverse) {
|
|||
continue;
|
||||
}
|
||||
if(!view_is_visible(tmp_view)) {
|
||||
next_view=tmp_view;
|
||||
next_view = tmp_view;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
6
output.c
6
output.c
|
|
@ -431,7 +431,8 @@ output_clear(struct cg_output *output) {
|
|||
->workspaces[server->curr_output->curr_workspace];
|
||||
view->tile =
|
||||
server->curr_output
|
||||
->workspaces[server->curr_output->curr_workspace]->focused_tile;
|
||||
->workspaces[server->curr_output->curr_workspace]
|
||||
->focused_tile;
|
||||
if(server->seat->focused_view == NULL) {
|
||||
seat_set_focus(server->seat, view);
|
||||
}
|
||||
|
|
@ -453,7 +454,8 @@ output_clear(struct cg_output *output) {
|
|||
->workspaces[server->curr_output->curr_workspace];
|
||||
view->tile =
|
||||
server->curr_output
|
||||
->workspaces[server->curr_output->curr_workspace]->focused_tile;
|
||||
->workspaces[server->curr_output->curr_workspace]
|
||||
->focused_tile;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
5
seat.c
5
seat.c
|
|
@ -968,9 +968,10 @@ seat_set_focus(struct cg_seat *seat, struct cg_view *view) {
|
|||
view_maximize(view, curr_workspace->focused_tile);
|
||||
wl_list_remove(&view->link);
|
||||
if(curr_workspace->focused_tile->view != NULL) {
|
||||
wl_list_insert(&curr_workspace->focused_tile->view->link,&view->link);
|
||||
wl_list_insert(&curr_workspace->focused_tile->view->link,
|
||||
&view->link);
|
||||
} else {
|
||||
wl_list_insert(curr_workspace->views.prev,&view->link);
|
||||
wl_list_insert(curr_workspace->views.prev, &view->link);
|
||||
}
|
||||
curr_workspace->focused_tile->view = view;
|
||||
}
|
||||
|
|
|
|||
7
view.c
7
view.c
|
|
@ -248,12 +248,15 @@ view_maximize(struct cg_view *view, struct cg_tile *tile) {
|
|||
view->ox = tile->tile.x;
|
||||
view->oy = tile->tile.y;
|
||||
view->impl->maximize(view, tile->tile.width, tile->tile.height);
|
||||
view->tile=tile;
|
||||
view->tile = tile;
|
||||
}
|
||||
|
||||
void
|
||||
view_position(struct cg_view *view) {
|
||||
view_maximize(view, view->workspace->output->workspaces[view->workspace->output->curr_workspace]->focused_tile);
|
||||
view_maximize(view,
|
||||
view->workspace->output
|
||||
->workspaces[view->workspace->output->curr_workspace]
|
||||
->focused_tile);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue