From f3bdee255d3c4252640b2337224e2f0b95944d7f Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 22 Feb 2020 11:41:15 +0000 Subject: Browser: Add FOREGROUND flag to window creation To better support new-tab / new-window operations as well as GUIs which want to allow tabs to open in the background by default, add a flag to request a new browser window be foregrounded. This will allow us to simplify at least the GTK frontend a little. Signed-off-by: Daniel Silverstone --- include/netsurf/window.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/netsurf/window.h') diff --git a/include/netsurf/window.h b/include/netsurf/window.h index 8f14a8c78..a393a3560 100644 --- a/include/netsurf/window.h +++ b/include/netsurf/window.h @@ -66,7 +66,8 @@ typedef enum { typedef enum { GW_CREATE_NONE = 0, /**< New window */ GW_CREATE_CLONE = (1 << 0), /**< Clone existing window */ - GW_CREATE_TAB = (1 << 1) /**< Create tab in same window as existing */ + GW_CREATE_TAB = (1 << 1), /**< Create tab in same window as existing */ + GW_CREATE_FOREGROUND = (1 << 2), /**< Request this window/tab is foregrounded */ } gui_window_create_flags; /** -- cgit v1.2.3