Skip to content

Commit

Permalink
Merge pull request emacs-mirror#9 from fejfighter/pgtk-no-conn
Browse files Browse the repository at this point in the history
Handle keyboard fd correctly to fix cursor blink
  • Loading branch information
Yuuki Harano authored Jan 17, 2020
2 parents 362c9aa + 4c1535e commit fc4d0d1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pgtkterm.c
Original file line number Diff line number Diff line change
Expand Up @@ -4302,6 +4302,8 @@ pgtk_delete_terminal (struct terminal *terminal)
dpyinfo->gdpy = NULL;
}

delete_keyboard_wait_descriptor(0);

pgtk_delete_display (dpyinfo);
unblock_input ();
}
Expand Down Expand Up @@ -6269,6 +6271,11 @@ pgtk_term_init (Lisp_Object display_name, char *resource_name)

xsettings_initialize (dpyinfo);

/* According to w32term.c this will stop the emacs console handling
code from handling keyboard input when we want gtk to do that for
us */
add_keyboard_wait_descriptor (0);

pgtk_selection_init();

pgtk_im_init (dpyinfo);
Expand Down

0 comments on commit fc4d0d1

Please sign in to comment.