tree-wide: rename g_server to just server

This commit is contained in:
John Lindgren 2026-03-19 12:05:43 -04:00 committed by Johan Malm
parent 8d46da9db1
commit 4f72e6775e
61 changed files with 955 additions and 955 deletions

View file

@ -149,15 +149,15 @@ xdg_popup_create(struct view *view, struct wlr_xdg_popup *wlr_popup)
* this, we always set the user data field of wlr_surfaces to the
* corresponding scene node.
*
* xdg-popups live in g_server.xdg_popup_tree so that they can be
* xdg-popups live in server.xdg_popup_tree so that they can be
* rendered above always-on-top windows
*/
struct wlr_scene_tree *parent_tree = NULL;
if (parent->role == WLR_XDG_SURFACE_ROLE_POPUP) {
parent_tree = parent->surface->data;
} else {
parent_tree = g_server.xdg_popup_tree;
wlr_scene_node_set_position(&g_server.xdg_popup_tree->node,
parent_tree = server.xdg_popup_tree;
wlr_scene_node_set_position(&server.xdg_popup_tree->node,
view->current.x, view->current.y);
}
wlr_popup->base->surface->data =