mirror of
https://github.com/labwc/labwc.git
synced 2026-04-07 08:21:20 -04:00
tree-wide: use rc.theme instead of server.theme
Having two global pointers to the same struct is redundant.
This commit is contained in:
parent
9550bccef2
commit
d4ad27e636
18 changed files with 46 additions and 52 deletions
|
|
@ -776,7 +776,7 @@ show_menu(struct view *view, struct cursor_context *ctx,
|
|||
int lx, ly;
|
||||
wlr_scene_node_coords(ctx->node, &lx, &ly);
|
||||
/* MAX() prevents negative x when the window is maximized */
|
||||
x = MAX(x, lx - server.theme->menu_border_width);
|
||||
x = MAX(x, lx - rc.theme->menu_border_width);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue