summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2013-01-10 21:10:07 +0100
committerOle Loots <ole@monochrom.net>2013-01-10 21:10:07 +0100
commit91c2885b4c8d72d3996c0bbe81baa4c7e348c6e0 (patch)
treec03e62725928d61eb186d86de8447aca1a85be94
parent4245051bd8fdba5bee1ba81eab817df4cb9d3086 (diff)
downloadnetsurf-91c2885b4c8d72d3996c0bbe81baa4c7e348c6e0.tar.gz
netsurf-91c2885b4c8d72d3996c0bbe81baa4c7e348c6e0.tar.bz2
Pass mouse button to toolbar event handler
-rwxr-xr-xatari/rootwin.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/atari/rootwin.c b/atari/rootwin.c
index 84591c3cd..9304720a0 100755
--- a/atari/rootwin.c
+++ b/atari/rootwin.c
@@ -123,6 +123,10 @@ static short handle_event(GUIWIN *win, EVMULT_OUT *ev_out, short msg[8])
on_resized(data->rootwin);
break;
+ case WM_ICONIFY:
+ // TODO: find next active gui window and schedule redraw for that.
+ break;
+
case WM_TOPPED:
case WM_NEWTOP:
case WM_UNICONIFY:
@@ -133,7 +137,8 @@ static short handle_event(GUIWIN *win, EVMULT_OUT *ev_out, short msg[8])
// TODO: this needs to iterate through all gui windows and
// check if the rootwin is this window...
if (data->rootwin->active_gui_window != NULL) {
- printf("destroy...\n");
+ LOG(("WM_CLOSED initiated destroy for bw %p",
+ data->rootwin->active_gui_window->browser->bw));
browser_window_destroy(
data->rootwin->active_gui_window->browser->bw);
}
@@ -144,7 +149,7 @@ static short handle_event(GUIWIN *win, EVMULT_OUT *ev_out, short msg[8])
break;
case WM_TOOLBAR:
- toolbar_mouse_input(data->rootwin->toolbar, msg[4]);
+ toolbar_mouse_input(data->rootwin->toolbar, msg[4], msg[7]);
break;
default: