mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 09:13:08 +03:00
A new window can now be opened in background mode.
This commit is contained in:
parent
b806c94c1d
commit
34a3901501
@ -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);
|
||||
}
|
||||
|
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user