From 5aa8813644464d4e3a2eb795ff728724de000eea Mon Sep 17 00:00:00 2001 From: Andrew Hodgkinson <ahodgkin@gitlab.riscosopen.org> Date: Thu, 24 Jul 1997 11:39:32 +0000 Subject: [PATCH] Made frames_highlight_frame only work if KeyboardCtl=yes --- c/Frames | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/c/Frames b/c/Frames index 177e28f..958cc27 100644 --- a/c/Frames +++ b/c/Frames @@ -1861,7 +1861,8 @@ static browser_data * frames_find_previous_frame(browser_data * check, browser_d /* removed by a NULL poll timer. */ /* */ /* Currently, the highlight will not move with */ -/* the parent browser window. */ +/* the parent browser window and will only show */ +/* if keyboard control is enabled. */ /* */ /* Parameters: Pointer to a browser_data struct */ /* relevant to the frame to be */ @@ -1876,6 +1877,12 @@ _kernel_oserror * frames_highlight_frame(browser_data * b) _kernel_oserror * e; BBox top, bottom, left, right; + /* Don't do anything if not using keyboard control */ + + if (!choices.keyboardctl) return NULL; + + /* Otherwise, proceed */ + if (!ancestor) ancestor = b; s.window_handle = b->window_handle; -- GitLab