A new window can now be opened in background mode.

This commit is contained in:
Ole Loots 2012-08-27 20:15:22 +02:00
parent b806c94c1d
commit 34a3901501
2 changed files with 9 additions and 6 deletions

View File

@ -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);
}

View File

@ -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 */