mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
ssd: Allocate struct ssd and struct ssd_hover_state separately
- Store a pointer to the `struct view` in `struct ssd` - Pass `struct ssd *` instead of `struct view *` to ssd functions - Add `ssd_get_margin()` convenience function
This commit is contained in:
parent
cfa51ab628
commit
1e8b0414fe
15 changed files with 112 additions and 65 deletions
|
|
@ -161,7 +161,7 @@ show_menu(struct server *server, struct view *view, const char *menu_name)
|
|||
if (!view) {
|
||||
return;
|
||||
}
|
||||
enum ssd_part_type type = ssd_at(&view->ssd, server->scene,
|
||||
enum ssd_part_type type = ssd_at(view->ssd, server->scene,
|
||||
server->seat.cursor->x, server->seat.cursor->y);
|
||||
if (type == LAB_SSD_BUTTON_WINDOW_MENU) {
|
||||
force_menu_top_left = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue