mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
Rewrite action handling to allow multiple actions at once
This commit is contained in:
parent
a54ce40e1c
commit
0b45cce648
12 changed files with 276 additions and 140 deletions
|
|
@ -470,8 +470,7 @@ handle_release_mousebinding(struct view *view, struct server *server,
|
|||
}
|
||||
activated_any = true;
|
||||
activated_any_frame |= mousebind->context == LAB_SSD_FRAME;
|
||||
action(view, server, mousebind->action,
|
||||
mousebind->command, resize_edges);
|
||||
action(view, server, &mousebind->actions, resize_edges);
|
||||
}
|
||||
}
|
||||
return activated_any && activated_any_frame;
|
||||
|
|
@ -532,8 +531,7 @@ handle_press_mousebinding(struct view *view, struct server *server,
|
|||
}
|
||||
activated_any = true;
|
||||
activated_any_frame |= mousebind->context == LAB_SSD_FRAME;
|
||||
action(view, server, mousebind->action,
|
||||
mousebind->command, resize_edges);
|
||||
action(view, server, &mousebind->actions, resize_edges);
|
||||
}
|
||||
}
|
||||
return activated_any && activated_any_frame;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue