summaryrefslogtreecommitdiff
path: root/atari
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2012-08-27 20:15:22 +0200
committerOle Loots <ole@monochrom.net>2012-08-27 20:15:22 +0200
commit34a3901501f12d9c7ed82332f79590ca62a094d1 (patch)
tree7a9f50fc6e469a9ff243a63b204c19f6ef0b6636 /atari
parentb806c94c1d6c98cc3e5461f06032aacff6c00b42 (diff)
downloadnetsurf-34a3901501f12d9c7ed82332f79590ca62a094d1.tar.gz
netsurf-34a3901501f12d9c7ed82332f79590ca62a094d1.tar.bz2
A new window can now be opened in background mode.
Diffstat (limited to 'atari')
-rwxr-xr-xatari/browser_win.c5
-rwxr-xr-xatari/browser_win.h10
2 files changed, 9 insertions, 6 deletions
diff --git a/atari/browser_win.c b/atari/browser_win.c
index 29e78caf9..3b987bb32 100755
--- a/atari/browser_win.c
+++ b/atari/browser_win.c
@@ -165,8 +165,9 @@ int window_create( struct gui_window * gw,
EvntDataAttach( gw->root->handle, WM_ICONDRAW, evnt_window_icondraw, gw);
EvntDataAttach( gw->root->handle, WM_SLIDEXY, evnt_window_slider, gw );
- /* TODO: check if window is openend as "foreground" window... */
- window_set_focus( gw, BROWSER, gw->browser);
+ if (inflags & WIN_TOP) {
+ window_set_focus( gw, BROWSER, gw->browser);
+ }
return (err);
}
diff --git a/atari/browser_win.h b/atari/browser_win.h
index 9d56226cf..4cf8a26f4 100755
--- a/atari/browser_win.h
+++ b/atari/browser_win.h
@@ -22,10 +22,12 @@
#define GUIWIN_VISIBLE(gw) (gw->root->handle->status & WS_OPEN)
#define GEMWIN_VISIBLE(win) (win->status & WS_OPEN)
-#define WIDGET_STATUSBAR 0x1
-#define WIDGET_TOOLBAR 0x2
-#define WIDGET_SCROLL 0x4
-#define WIDGET_RESIZE 0x8
+#define WIDGET_STATUSBAR 0x1
+#define WIDGET_TOOLBAR 0x2
+#define WIDGET_SCROLL 0x4
+#define WIDGET_RESIZE 0x8
+
+#define WIN_TOP 0x100
/* WinDom & Custom bindings for gui window */