summaryrefslogtreecommitdiff
path: root/frontends/amiga/gui.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2019-05-10 20:32:40 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2019-05-10 20:32:40 +0100
commitc5a07fac76313c2d2d6348dee20d881a639c40c8 (patch)
treed83ea7b5b2849be63c739a796a93f4d860267a2a /frontends/amiga/gui.c
parent8f9d434b1295215c377eab2ba7186ad8b2d92aa9 (diff)
downloadnetsurf-c5a07fac76313c2d2d6348dee20d881a639c40c8.tar.gz
netsurf-c5a07fac76313c2d2d6348dee20d881a639c40c8.tar.bz2
Replace global current gui_window with an accessor function
Diffstat (limited to 'frontends/amiga/gui.c')
-rw-r--r--frontends/amiga/gui.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c
index fec9ed35f..4374521c1 100644
--- a/frontends/amiga/gui.c
+++ b/frontends/amiga/gui.c
@@ -313,7 +313,7 @@ struct ami_gui_tb_userdata {
struct MinList *window_list = NULL;
struct Screen *scrn = NULL;
struct MsgPort *sport = NULL;
-struct gui_window *cur_gw = NULL;
+static struct gui_window *cur_gw = NULL;
static bool ami_quit = false;
@@ -377,6 +377,11 @@ static void gui_window_place_caret(struct gui_window *g, int x, int y, int heigh
nsoptions_default[NSOPTION_##OPTION].value.i = VALUE
/* Functions documented in gui.h */
+struct gui_window *ami_gui_get_active_gw(void)
+{
+ return cur_gw;
+}
+
struct browser_window *ami_gui_get_browser_window(struct gui_window *gw)
{
assert(gw != NULL);