X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/1d009ae71b849a95c86c3117d1b8f063fda8aae5..6b5cf8b49ddde467168034099c19447df4ba30b8:/unix/pterm.c?ds=sidebyside diff --git a/unix/pterm.c b/unix/pterm.c index 3eafe14a..122605e3 100644 --- a/unix/pterm.c +++ b/unix/pterm.c @@ -184,6 +184,17 @@ static Mouse_Button translate_button(Mouse_Button button) } /* + * Return the top-level GtkWindow associated with a particular + * front end instance. + */ +void *get_window(void *frontend) +{ + Terminal *term = (Terminal *)frontend; + struct gui_data *inst = (struct gui_data *)term->frontend; + return inst->window; +} + +/* * Minimise or restore the window in response to a server-side * request. */