forked from aniani/vim
patch 7.4.2042
Problem: GTK: display updating is not done properly and can be slow. Solution: Use gdk_display_flush() instead of gdk_display_sync(). Don't call gdk_window_process_updates(). (Kazunobu Kuriyama)
This commit is contained in:
@@ -6646,18 +6646,9 @@ gui_mch_flush(void)
|
|||||||
# else
|
# else
|
||||||
if (gui.mainwin != NULL && GTK_WIDGET_REALIZED(gui.mainwin))
|
if (gui.mainwin != NULL && GTK_WIDGET_REALIZED(gui.mainwin))
|
||||||
# endif
|
# endif
|
||||||
gdk_display_sync(gtk_widget_get_display(gui.mainwin));
|
gdk_display_flush(gtk_widget_get_display(gui.mainwin));
|
||||||
#else
|
#else
|
||||||
gdk_flush(); /* historical misnomer: calls XSync(), not XFlush() */
|
gdk_flush(); /* historical misnomer: calls XSync(), not XFlush() */
|
||||||
#endif
|
|
||||||
/* This happens to actually do what gui_mch_flush() is supposed to do,
|
|
||||||
* according to the comment above. */
|
|
||||||
#if GTK_CHECK_VERSION(3,0,0)
|
|
||||||
if (gui.drawarea != NULL && gtk_widget_get_window(gui.drawarea) != NULL)
|
|
||||||
gdk_window_process_updates(gtk_widget_get_window(gui.drawarea), FALSE);
|
|
||||||
#else
|
|
||||||
if (gui.drawarea != NULL && gui.drawarea->window != NULL)
|
|
||||||
gdk_window_process_updates(gui.drawarea->window, FALSE);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -758,6 +758,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2042,
|
||||||
/**/
|
/**/
|
||||||
2041,
|
2041,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user