emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master c0af83b: Don't attempt to disable double buffering


From: Philipp Stephani
Subject: [Emacs-diffs] master c0af83b: Don't attempt to disable double buffering in newer GTK+ versions
Date: Sat, 23 Sep 2017 07:02:25 -0400 (EDT)

branch: master
commit c0af83b6ccf2dab9a515dd7f52eb9d4500275ae3
Author: Philipp Stephani <address@hidden>
Commit: Philipp Stephani <address@hidden>

    Don't attempt to disable double buffering in newer GTK+ versions
    
    * src/gtkutil.c (xg_create_frame_widgets): Stop calling deprecated
    function gtk_widget_set_double_buffered.
---
 src/gtkutil.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gtkutil.c b/src/gtkutil.c
index b98b0d0..8ecbc5c 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -1233,12 +1233,14 @@ xg_create_frame_widgets (struct frame *f)
   if (FRAME_EXTERNAL_TOOL_BAR (f))
     update_frame_tool_bar (f);
 
+#if ! GTK_CHECK_VERSION (3, 14, 0)
   /* We don't want this widget double buffered, because we draw on it
      with regular X drawing primitives, so from a GTK/GDK point of
      view, the widget is totally blank.  When an expose comes, this
      will make the widget blank, and then Emacs redraws it.  This flickers
      a lot, so we turn off double buffering.  */
   gtk_widget_set_double_buffered (wfixed, FALSE);
+#endif
 
 #if ! GTK_CHECK_VERSION (3, 22, 0)
   gtk_window_set_wmclass (GTK_WINDOW (wtop),



reply via email to

[Prev in Thread] Current Thread [Next in Thread]