[hackers] [surf] Grab focus for WebView on window creation || Quentin Rameau

From: <git_AT_suckless.org>
Date: Thu, 13 Aug 2015 15:00:17 +0200 (CEST)

commit 8ebc964e23b12d3a055705891e2efe17500d811c
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Thu Aug 13 14:51:17 2015 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Thu Aug 13 14:51:17 2015 +0200

    Grab focus for WebView on window creation
    
    Reintroducing the gtk_widget_grab_focus() which had been lost during
    initial port.

diff --git a/surf.c b/surf.c
index 40384e8..238f465 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -1011,6 +1011,7 @@ show(WebKitWebView *view, Client *c) {
         }
 
         gtk_widget_show_all(c->win);
+ gtk_widget_grab_focus(GTK_WIDGET(c->view));
 
         c->cwin = gtk_widget_get_window(GTK_WIDGET(c->win));
         gtk_window_set_geometry_hints(GTK_WINDOW(c->win), NULL, &hints,
Received on Thu Aug 13 2015 - 15:00:17 CEST

This archive was generated by hypermail 2.3.0 : Thu Aug 13 2015 - 15:12:11 CEST