diff options
author | Ole Loots <ole@monochrom.net> | 2012-12-06 00:26:50 +0100 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2012-12-06 00:26:50 +0100 |
commit | fa0326af43f132e01ea715652c0ba59787723321 (patch) | |
tree | 354f9d96096048a11224c2dedaec9c2834f7a902 /atari/ctxmenu.c | |
parent | 434befd25b116286766732891f8eb83600f2b3bd (diff) | |
download | netsurf-fa0326af43f132e01ea715652c0ba59787723321.tar.gz netsurf-fa0326af43f132e01ea715652c0ba59787723321.tar.bz2 |
Context menu now opens at the correct location.
Diffstat (limited to 'atari/ctxmenu.c')
-rw-r--r-- | atari/ctxmenu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/atari/ctxmenu.c b/atari/ctxmenu.c index 66c4b7f65..c9189af22 100644 --- a/atari/ctxmenu.c +++ b/atari/ctxmenu.c @@ -75,7 +75,7 @@ static struct s_context_info * get_context_info( struct gui_window * gw, short m h = bw->current_content;
ctxinfo.flags = 0;
- browser_get_rect( gw, BR_CONTENT, &bwrect );
+ guiwin_get_grect(gw->root->win, GUIWIN_AREA_CONTENT, &bwrect);
mx -= bwrect.g_x;
my -= bwrect.g_y;
if( (mx < 0 || mx > bwrect.g_w) || (my < 0 || my > bwrect.g_h) ){
@@ -109,7 +109,7 @@ static struct s_context_info * get_context_info( struct gui_window * gw, short m return( &ctxinfo );
}
-void context_popup( struct gui_window * gw, short x, short y )
+void context_popup(struct gui_window * gw, short x, short y)
{
#define POP_FIRST_ITEM POP_CTX_CUT_SEL
|