]> git.eshelyaron.com Git - emacs.git/commitdiff
Make native input work on GTK 2
authorPo Lu <luangruo@yahoo.com>
Tue, 11 Jan 2022 10:13:04 +0000 (18:13 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 11 Jan 2022 10:13:04 +0000 (18:13 +0800)
* src/gtkutil.c (xg_create_frame_widgets): Allow focusing fixed
widget.

src/gtkutil.c

index 3550a56e29934ddb498990bb8e1b887c58a3b0de..1db166b1bad38cad3bae02710f436b0fdb27514e 100644 (file)
@@ -1608,6 +1608,7 @@ xg_create_frame_widgets (struct frame *f)
   /* Must use g_strdup because gtk_widget_modify_style does g_free.  */
   style->bg_pixmap_name[GTK_STATE_NORMAL] = g_strdup ("<none>");
   gtk_widget_modify_style (wfixed, style);
+  gtk_widget_set_can_focus (wfixed, TRUE);
 #else
   gtk_widget_set_can_focus (wfixed, TRUE);
 #ifdef HAVE_PGTK