mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-03-01 12:54:22 +03:00
Set selection browser window as before, for now.
svn path=/trunk/netsurf/; revision=12553
This commit is contained in:
parent
4147c185c8
commit
dde300ea7d
@ -292,6 +292,7 @@ struct browser_window *browser_window_create(const char *url,
|
||||
bw->focus = bw;
|
||||
|
||||
bw->sel = selection_create();
|
||||
selection_set_browser_window(bw->sel, bw);
|
||||
|
||||
/* gui window */
|
||||
/* from the front end's pov, it clones the top level browser window,
|
||||
@ -1682,6 +1683,10 @@ void browser_window_mouse_track(struct browser_window *bw,
|
||||
browser_window_mouse_drag_end(bw, mouse, x, y);
|
||||
}
|
||||
|
||||
if (bw->drag_type != DRAGGING_NONE) {
|
||||
selection_set_browser_window(bw->sel, bw);
|
||||
}
|
||||
|
||||
if (bw->drag_type == DRAGGING_FRAME) {
|
||||
browser_window_resize_frame(bw, bw->x0 + x, bw->y0 + y);
|
||||
} else if (bw->drag_type == DRAGGING_PAGE_SCROLL) {
|
||||
@ -1736,6 +1741,8 @@ void browser_window_mouse_click(struct browser_window *bw,
|
||||
top = browser_window_get_root(bw);
|
||||
top->focus = bw;
|
||||
|
||||
selection_set_browser_window(bw->sel, bw);
|
||||
|
||||
switch (content_get_type(c)) {
|
||||
case CONTENT_HTML:
|
||||
case CONTENT_TEXTPLAIN:
|
||||
|
Loading…
x
Reference in New Issue
Block a user