mirror of
https://github.com/labwc/labwc.git
synced 2026-03-23 05:34:52 -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
|
|
@ -122,7 +122,7 @@ void
|
|||
kde_server_decoration_init(void)
|
||||
{
|
||||
assert(!kde_deco_mgr);
|
||||
kde_deco_mgr = wlr_server_decoration_manager_create(g_server.wl_display);
|
||||
kde_deco_mgr = wlr_server_decoration_manager_create(server.wl_display);
|
||||
if (!kde_deco_mgr) {
|
||||
wlr_log(WLR_ERROR, "unable to create the kde server deco manager");
|
||||
exit(EXIT_FAILURE);
|
||||
|
|
@ -131,12 +131,12 @@ kde_server_decoration_init(void)
|
|||
wl_list_init(&decorations);
|
||||
kde_server_decoration_update_default();
|
||||
|
||||
wl_signal_add(&kde_deco_mgr->events.new_decoration, &g_server.kde_server_decoration);
|
||||
g_server.kde_server_decoration.notify = handle_new_server_decoration;
|
||||
wl_signal_add(&kde_deco_mgr->events.new_decoration, &server.kde_server_decoration);
|
||||
server.kde_server_decoration.notify = handle_new_server_decoration;
|
||||
}
|
||||
|
||||
void
|
||||
kde_server_decoration_finish(void)
|
||||
{
|
||||
wl_list_remove(&g_server.kde_server_decoration.link);
|
||||
wl_list_remove(&server.kde_server_decoration.link);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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