Give input focus to drawing area on click. (credit: Paul Blokus)

svn path=/trunk/netsurf/; revision=8277
This commit is contained in:
John Mark Bell 2009-07-02 23:22:24 +00:00
parent b8f6dfd58d
commit 7792d81e85
1 changed files with 1 additions and 2 deletions

View File

@ -380,9 +380,8 @@ gboolean nsgtk_window_button_press_event(GtkWidget *widget,
GdkEventButton *event, gpointer data)
{
struct gui_window *g = data;
GtkWindow *window = nsgtk_get_window_for_scaffold(g->scaffold);
gtk_window_set_focus(window, NULL);
gtk_widget_grab_focus(GTK_WIDGET(g->drawing_area));
g->mouse->pressed_x = event->x / g->bw->scale;
g->mouse->pressed_y = event->y / g->bw->scale;