From 91c2885b4c8d72d3996c0bbe81baa4c7e348c6e0 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Thu, 10 Jan 2013 21:10:07 +0100 Subject: Pass mouse button to toolbar event handler --- atari/rootwin.c | 9 +++++++-- 1 file 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: -- cgit v1.2.3