mirror of
https://github.com/labwc/labwc.git
synced 2026-04-08 08:21:09 -04:00
tree-wide: rename g_server to just server
This commit is contained in:
parent
8d46da9db1
commit
4f72e6775e
61 changed files with 955 additions and 955 deletions
10
src/edges.c
10
src/edges.c
|
|
@ -353,17 +353,17 @@ edges_calculate_visibility(struct view *ignored_view)
|
|||
*/
|
||||
struct output *output;
|
||||
struct wlr_box layout_box;
|
||||
wl_list_for_each(output, &g_server.outputs, link) {
|
||||
wl_list_for_each(output, &server.outputs, link) {
|
||||
if (!output_is_usable(output)) {
|
||||
continue;
|
||||
}
|
||||
wlr_output_layout_get_box(g_server.output_layout,
|
||||
wlr_output_layout_get_box(server.output_layout,
|
||||
output->wlr_output, &layout_box);
|
||||
pixman_region32_union_rect(®ion, ®ion,
|
||||
layout_box.x, layout_box.y, layout_box.width, layout_box.height);
|
||||
}
|
||||
|
||||
subtract_node_tree(&g_server.scene->tree, ®ion, ignored_view);
|
||||
subtract_node_tree(&server.scene->tree, ®ion, ignored_view);
|
||||
|
||||
pixman_region32_fini(®ion);
|
||||
}
|
||||
|
|
@ -389,7 +389,7 @@ edges_find_neighbors(struct border *nearest_edges, struct view *view,
|
|||
edges_for_target_geometry(&target_edges, view, target);
|
||||
|
||||
struct view *v;
|
||||
for_each_view(v, &g_server.views, LAB_VIEW_CRITERIA_CURRENT_WORKSPACE) {
|
||||
for_each_view(v, &server.views, LAB_VIEW_CRITERIA_CURRENT_WORKSPACE) {
|
||||
if (v == view || v->minimized || !output_is_usable(v->output)) {
|
||||
continue;
|
||||
}
|
||||
|
|
@ -447,7 +447,7 @@ edges_find_outputs(struct border *nearest_edges, struct view *view,
|
|||
edges_for_target_geometry(&target_edges, view, target);
|
||||
|
||||
struct output *o;
|
||||
wl_list_for_each(o, &g_server.outputs, link) {
|
||||
wl_list_for_each(o, &server.outputs, link) {
|
||||
if (!output_is_usable(o)) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue