Give input focus to drawing area on click. (credit: Paul Blokus)
svn path=/trunk/netsurf/; revision=8277
This commit is contained in:
parent
b8f6dfd58d
commit
7792d81e85
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue