mirror of
https://github.com/labwc/labwc.git
synced 2026-06-13 14:33:18 -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
|
|
@ -115,22 +115,22 @@ xdg_toplevel_decoration(struct wl_listener *listener, void *data)
|
|||
}
|
||||
|
||||
void
|
||||
xdg_server_decoration_init(void)
|
||||
xdserver_decoration_init(void)
|
||||
{
|
||||
struct wlr_xdg_decoration_manager_v1 *xdg_deco_mgr = NULL;
|
||||
xdg_deco_mgr = wlr_xdg_decoration_manager_v1_create(g_server.wl_display);
|
||||
xdg_deco_mgr = wlr_xdg_decoration_manager_v1_create(server.wl_display);
|
||||
if (!xdg_deco_mgr) {
|
||||
wlr_log(WLR_ERROR, "unable to create the XDG deco manager");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
wl_signal_add(&xdg_deco_mgr->events.new_toplevel_decoration,
|
||||
&g_server.xdg_toplevel_decoration);
|
||||
g_server.xdg_toplevel_decoration.notify = xdg_toplevel_decoration;
|
||||
&server.xdg_toplevel_decoration);
|
||||
server.xdg_toplevel_decoration.notify = xdg_toplevel_decoration;
|
||||
}
|
||||
|
||||
void
|
||||
xdg_server_decoration_finish(void)
|
||||
xdserver_decoration_finish(void)
|
||||
{
|
||||
wl_list_remove(&g_server.xdg_toplevel_decoration.link);
|
||||
wl_list_remove(&server.xdg_toplevel_decoration.link);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue