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
|
|
@ -52,7 +52,7 @@ touch_get_coords(struct seat *seat, struct wlr_touch *touch, double x, double y,
|
|||
* This matches normal pointer/mouse behavior where the first click on
|
||||
* a surface closes a root/client menu.
|
||||
*/
|
||||
if (g_server.input_mode == LAB_INPUT_STATE_MENU) {
|
||||
if (server.input_mode == LAB_INPUT_STATE_MENU) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
@ -63,7 +63,7 @@ touch_get_coords(struct seat *seat, struct wlr_touch *touch, double x, double y,
|
|||
|
||||
double sx, sy;
|
||||
struct wlr_scene_node *node =
|
||||
wlr_scene_node_at(&g_server.scene->tree.node, lx, ly, &sx, &sy);
|
||||
wlr_scene_node_at(&server.scene->tree.node, lx, ly, &sx, &sy);
|
||||
|
||||
*x_offset = lx - sx;
|
||||
*y_offset = ly - sy;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue