summaryrefslogtreecommitdiff
path: root/riscos/window.c
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2006-09-05 00:24:17 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2006-09-05 00:24:17 +0000
commit6d36d39a56ac2205226795fbb5167162b9251819 (patch)
treed3233762e9659e4400edd828e32a9a920e7ee9ca /riscos/window.c
parentbb8cc248717c256b68cc5e76d68f52c43801f54e (diff)
downloadnetsurf-6d36d39a56ac2205226795fbb5167162b9251819.tar.gz
netsurf-6d36d39a56ac2205226795fbb5167162b9251819.tar.bz2
Don't force iframe windows 'onto screen' when opening (fix 1551632)
svn path=/trunk/netsurf/; revision=2913
Diffstat (limited to 'riscos/window.c')
-rw-r--r--riscos/window.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/riscos/window.c b/riscos/window.c
index b07ff0390..c953afd95 100644
--- a/riscos/window.c
+++ b/riscos/window.c
@@ -253,8 +253,9 @@ struct gui_window *gui_create_browser_window(struct browser_window *bw,
wimp_WINDOW_HSCROLL);
window.title_fg = 0xff;
break;
- case BROWSER_WINDOW_FRAME:
case BROWSER_WINDOW_IFRAME:
+ window.flags |= wimp_WINDOW_NO_BOUNDS;
+ case BROWSER_WINDOW_FRAME:
if (bw->scrolling == SCROLLING_NO)
window.flags &= ~(wimp_WINDOW_VSCROLL |
wimp_WINDOW_HSCROLL);
@@ -1002,15 +1003,15 @@ void gui_window_position_frame(struct gui_window *g, int x0, int y0, int x1, int
/* store position for children */
if (parent->browser_window_type == BROWSER_WINDOW_IFRAME) {
- x0 = bw->x0 = x0;
- y0 = bw->y0 = y0;
- x1 = bw->x1 = x1;
- y1 = bw->y1 = y1;
+ bw->x0 = x0;
+ bw->y0 = y0;
+ bw->x1 = x1;
+ bw->y1 = y1;
} else {
- x0 = bw->x0 = parent->x0 + x0;
- y0 = bw->y0 = parent->y0 + y0;
- x1 = bw->x1 = parent->x0 + x1;
- y1 = bw->y1 = parent->y0 + y1;
+ bw->x0 = x0 = parent->x0 + x0;
+ bw->y0 = y0 = parent->y0 + y0;
+ bw->x1 = x1 = parent->x0 + x1;
+ bw->y1 = y1 = parent->y0 + y1;
}
/* get the position of the top level window */
@@ -1060,8 +1061,7 @@ void gui_window_position_frame(struct gui_window *g, int x0, int y0, int x1, int
state.visible.x0 = px0 + x0 * 2;
state.visible.y0 = py1 - y1;
state.visible.x1 = px0 + x1;
- state.visible.y1 = py1 - y0 * 2;
-
+ state.visible.y1 = py1 - y0 * 2;
ro_gui_window_open(g, (wimp_open *)&state);
}