diff options
author | nicm <nicm> | 2021-08-13 18:54:54 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-08-13 18:54:54 +0000 |
commit | 7789639b5d1818ebbac7bfab74959e4968d7cdf2 (patch) | |
tree | 1875b3fa863cb664f34b8c5b5e6278abca63bcdf /cmd-display-panes.c | |
parent | 614611a8bd65e82efccdf44d4f9c23c0f35ed293 (diff) | |
download | rtmux-7789639b5d1818ebbac7bfab74959e4968d7cdf2.tar.gz rtmux-7789639b5d1818ebbac7bfab74959e4968d7cdf2.tar.bz2 rtmux-7789639b5d1818ebbac7bfab74959e4968d7cdf2.zip |
Add a menu when a popup is present (mouse only for now).
Diffstat (limited to 'cmd-display-panes.c')
-rw-r--r-- | cmd-display-panes.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cmd-display-panes.c b/cmd-display-panes.c index f03b80ed..beadae53 100644 --- a/cmd-display-panes.c +++ b/cmd-display-panes.c @@ -186,7 +186,8 @@ out: } static void -cmd_display_panes_draw(struct client *c, struct screen_redraw_ctx *ctx) +cmd_display_panes_draw(struct client *c, __unused void *data, + struct screen_redraw_ctx *ctx) { struct window *w = c->session->curw->window; struct window_pane *wp; @@ -200,9 +201,9 @@ cmd_display_panes_draw(struct client *c, struct screen_redraw_ctx *ctx) } static void -cmd_display_panes_free(struct client *c) +cmd_display_panes_free(__unused struct client *c, void *data) { - struct cmd_display_panes_data *cdata = c->overlay_data; + struct cmd_display_panes_data *cdata = data; if (cdata->item != NULL) cmdq_continue(cdata->item); @@ -211,9 +212,9 @@ cmd_display_panes_free(struct client *c) } static int -cmd_display_panes_key(struct client *c, struct key_event *event) +cmd_display_panes_key(struct client *c, void *data, struct key_event *event) { - struct cmd_display_panes_data *cdata = c->overlay_data; + struct cmd_display_panes_data *cdata = data; char *cmd, *expanded, *error; struct window *w = c->session->curw->window; struct window_pane *wp; |