diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2020-05-22 23:58:16 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2020-05-22 23:58:16 +0100 |
commit | aa86da5f027301540bd4a41cdfa512fa1d2b69e8 (patch) | |
tree | 1fca11d5c6b317292b2f6884ee9d8e735b74a1fd /frontends/amiga/gui.c | |
parent | 505217a8e7be13f720b023d9b8691137779c4fb2 (diff) | |
download | netsurf-aa86da5f027301540bd4a41cdfa512fa1d2b69e8.tar.gz netsurf-aa86da5f027301540bd4a41cdfa512fa1d2b69e8.tar.bz2 |
Amiga: position page info window under page info button
Diffstat (limited to 'frontends/amiga/gui.c')
-rw-r--r-- | frontends/amiga/gui.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c index 1dde68727..698c2c775 100644 --- a/frontends/amiga/gui.c +++ b/frontends/amiga/gui.c @@ -3000,8 +3000,21 @@ static BOOL ami_gui_event(void *w) break; case GID_PAGEINFO: - if(ami_pageinfo_open(gwin->gw->bw) != NSERROR_OK) { - NSLOG(netsurf, INFO, "Unable to open page info window"); + { + ULONG w_top, w_left; + ULONG g_top, g_left, g_height; + + GetAttr(WA_Top, gwin->objects[OID_MAIN], &w_top); + GetAttr(WA_Left, gwin->objects[OID_MAIN], &w_left); + GetAttr(GA_Top, gwin->objects[GID_PAGEINFO], &g_top); + GetAttr(GA_Left, gwin->objects[GID_PAGEINFO], &g_left); + GetAttr(GA_Height, gwin->objects[GID_PAGEINFO], &g_height); + + if(ami_pageinfo_open(gwin->gw->bw, + w_left + g_left, + w_top + g_top + g_height) != NSERROR_OK) { + NSLOG(netsurf, INFO, "Unable to open page info window"); + } } break; |