Skip to content

Commit fc4d0d1

Browse files
author
Yuuki Harano
authored
Merge pull request emacs-mirror#9 from fejfighter/pgtk-no-conn
Handle keyboard fd correctly to fix cursor blink
2 parents 362c9aa + 4c1535e commit fc4d0d1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/pgtkterm.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4302,6 +4302,8 @@ pgtk_delete_terminal (struct terminal *terminal)
43024302
dpyinfo->gdpy = NULL;
43034303
}
43044304

4305+
delete_keyboard_wait_descriptor(0);
4306+
43054307
pgtk_delete_display (dpyinfo);
43064308
unblock_input ();
43074309
}
@@ -6269,6 +6271,11 @@ pgtk_term_init (Lisp_Object display_name, char *resource_name)
62696271

62706272
xsettings_initialize (dpyinfo);
62716273

6274+
/* According to w32term.c this will stop the emacs console handling
6275+
code from handling keyboard input when we want gtk to do that for
6276+
us */
6277+
add_keyboard_wait_descriptor (0);
6278+
62726279
pgtk_selection_init();
62736280

62746281
pgtk_im_init (dpyinfo);

0 commit comments

Comments
 (0)