mirror of
https://github.com/labwc/labwc.git
synced 2026-03-22 05:33:57 -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
|
|
@ -133,7 +133,7 @@ struct cycle_osd_impl {
|
|||
*/
|
||||
void (*init)(struct cycle_osd_output *osd_output);
|
||||
/*
|
||||
* Update the OSD to highlight g_server.cycle.selected_view.
|
||||
* Update the OSD to highlight server.cycle.selected_view.
|
||||
*/
|
||||
void (*update)(struct cycle_osd_output *osd_output);
|
||||
};
|
||||
|
|
@ -157,7 +157,7 @@ void cycle_osd_scroll_init(struct cycle_osd_output *osd_output,
|
|||
int nr_cols, int nr_rows, int nr_visible_rows,
|
||||
float *border_color, float *bg_color);
|
||||
|
||||
/* Scroll the OSD to show g_server.cycle.selected_view if needed */
|
||||
/* Scroll the OSD to show server.cycle.selected_view if needed */
|
||||
void cycle_osd_scroll_update(struct cycle_osd_output *osd_output);
|
||||
|
||||
extern struct cycle_osd_impl cycle_osd_classic_impl;
|
||||
|
|
|
|||
|
|
@ -7,12 +7,12 @@ struct view;
|
|||
struct wlr_surface;
|
||||
|
||||
void kde_server_decoration_init(void);
|
||||
void xdg_server_decoration_init(void);
|
||||
void xdserver_decoration_init(void);
|
||||
|
||||
void kde_server_decoration_update_default(void);
|
||||
void kde_server_decoration_set_view(struct view *view, struct wlr_surface *surface);
|
||||
|
||||
void kde_server_decoration_finish(void);
|
||||
void xdg_server_decoration_finish(void);
|
||||
void xdserver_decoration_finish(void);
|
||||
|
||||
#endif /* LABWC_DECORATIONS_H */
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ void cursor_context_save(struct cursor_context_saved *saved_ctx,
|
|||
|
||||
/**
|
||||
* cursor_get_resize_edges - calculate resize edge based on cursor position
|
||||
* @cursor - the current cursor (usually g_server.seat.cursor)
|
||||
* @cursor - the current cursor (usually server.seat.cursor)
|
||||
* @cursor_context - result of get_cursor_context()
|
||||
*
|
||||
* Calculates the resize edge combination that is most appropriate based
|
||||
|
|
|
|||
|
|
@ -313,7 +313,7 @@ struct server {
|
|||
};
|
||||
|
||||
/* defined in main.c */
|
||||
extern struct server g_server;
|
||||
extern struct server server;
|
||||
|
||||
void xdg_popup_create(struct view *view, struct wlr_xdg_popup *wlr_popup);
|
||||
void xdg_shell_init(void);
|
||||
|
|
@ -405,8 +405,8 @@ void seat_focus_override_end(struct seat *seat, bool restore_focus);
|
|||
/**
|
||||
* interactive_anchor_to_cursor() - repositions the geometry to remain
|
||||
* underneath the cursor when its size changes during interactive move.
|
||||
* This function also resizes g_server.grab_box and repositions it to remain
|
||||
* underneath g_server.grab_{x,y}.
|
||||
* This function also resizes server.grab_box and repositions it to remain
|
||||
* underneath server.grab_{x,y}.
|
||||
*
|
||||
* geo->{width,height} are provided by the caller.
|
||||
* geo->{x,y} are computed by this function.
|
||||
|
|
|
|||
|
|
@ -84,10 +84,10 @@ struct menu *menu_get_by_id(const char *id);
|
|||
/**
|
||||
* menu_open_root - open menu on position (x, y)
|
||||
*
|
||||
* This function will close g_server.menu_current, open the
|
||||
* new menu and assign @menu to g_server.menu_current.
|
||||
* This function will close server.menu_current, open the
|
||||
* new menu and assign @menu to server.menu_current.
|
||||
*
|
||||
* Additionally, g_server.input_mode will be set to LAB_INPUT_STATE_MENU.
|
||||
* Additionally, server.input_mode will be set to LAB_INPUT_STATE_MENU.
|
||||
*/
|
||||
void menu_open_root(struct menu *menu, int x, int y);
|
||||
|
||||
|
|
@ -102,10 +102,10 @@ void menu_process_cursor_motion(struct wlr_scene_node *node);
|
|||
/**
|
||||
* menu_close_root- close root menu
|
||||
*
|
||||
* This function will close g_server.menu_current and set it to NULL.
|
||||
* Asserts that g_server.input_mode is set to LAB_INPUT_STATE_MENU.
|
||||
* This function will close server.menu_current and set it to NULL.
|
||||
* Asserts that server.input_mode is set to LAB_INPUT_STATE_MENU.
|
||||
*
|
||||
* Additionally, g_server.input_mode will be set to LAB_INPUT_STATE_PASSTHROUGH.
|
||||
* Additionally, server.input_mode will be set to LAB_INPUT_STATE_PASSTHROUGH.
|
||||
*/
|
||||
void menu_close_root(void);
|
||||
|
||||
|
|
|
|||
|
|
@ -357,7 +357,7 @@ bool view_matches_query(struct view *view, struct view_query *query);
|
|||
* @criteria: Criteria to match against.
|
||||
* Example:
|
||||
* struct view *view;
|
||||
* for_each_view(view, &g_server.views, LAB_VIEW_CRITERIA_NONE) {
|
||||
* for_each_view(view, &server.views, LAB_VIEW_CRITERIA_NONE) {
|
||||
* printf("%s\n", view_get_string_prop(view, "app_id"));
|
||||
* }
|
||||
*/
|
||||
|
|
@ -373,7 +373,7 @@ bool view_matches_query(struct view *view, struct view_query *query);
|
|||
* @criteria: Criteria to match against.
|
||||
* Example:
|
||||
* struct view *view;
|
||||
* for_each_view_reverse(view, &g_server.views, LAB_VIEW_CRITERIA_NONE) {
|
||||
* for_each_view_reverse(view, &server.views, LAB_VIEW_CRITERIA_NONE) {
|
||||
* printf("%s\n", view_get_string_prop(view, "app_id"));
|
||||
* }
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue