From 9c6094944bdaf52f46982f9b0dffb88a5f71907b Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Mon, 22 Nov 2004 23:06:49 +0000 Subject: [project @ 2004-11-22 23:06:49 by rjw] Stop scroll wheels from moving the toolbar svn path=/import/netsurf/; revision=1370 --- riscos/theme.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'riscos') diff --git a/riscos/theme.c b/riscos/theme.c index 220296609..d4d201b01 100644 --- a/riscos/theme.c +++ b/riscos/theme.c @@ -1254,12 +1254,14 @@ bool ro_gui_theme_process_toolbar(struct toolbar *toolbar, int width) { /* Re-attach to the parent */ toolbar->toolbar_current = width; - if ((toolbar->reformat_buttons) && (parent) && (old_height != toolbar->height)) { + if (toolbar->reformat_buttons) { extent.x1 = 16384; extent.y0 = 0; extent.y1 = toolbar->height; xwimp_set_extent(toolbar->toolbar_handle, &extent); - ro_gui_theme_attach_toolbar(toolbar, parent); + if ((parent) && (old_height != toolbar->height)) { + ro_gui_theme_attach_toolbar(toolbar, parent); + } } toolbar->reformat_buttons = false; } -- cgit v1.2.3