mirror of
https://github.com/labwc/labwc.git
synced 2026-03-19 05:33:53 -04:00
interactive: subtle refactor to interactive_set_grab_context()
- Add `server` argument to `interactive_set_grab_context()` to clarify it updates something in `server`. - Add `const` qualifier to `ctx` argument of `interactive_set_grab_context()` and `cursor_get_resize_edges()`
This commit is contained in:
parent
df73a97efa
commit
00f63622b5
5 changed files with 8 additions and 8 deletions
|
|
@ -60,12 +60,11 @@ interactive_anchor_to_cursor(struct server *server, struct wlr_box *geo)
|
|||
* then interactive_begin() is called.
|
||||
*/
|
||||
void
|
||||
interactive_set_grab_context(struct cursor_context *ctx)
|
||||
interactive_set_grab_context(struct server *server, const struct cursor_context *ctx)
|
||||
{
|
||||
if (!ctx->view) {
|
||||
return;
|
||||
}
|
||||
struct server *server = ctx->view->server;
|
||||
if (server->input_mode != LAB_INPUT_STATE_PASSTHROUGH) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue