]> git.eshelyaron.com Git - emacs.git/commitdiff
* xterm.c (handle_one_xevent): Revert part of 2013-09-17 change
authorDmitry Antipov <dmantipov@yandex.ru>
Fri, 20 Sep 2013 03:30:50 +0000 (07:30 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Fri, 20 Sep 2013 03:30:50 +0000 (07:30 +0400)
to avoid Bug#15398.

src/ChangeLog
src/xterm.c

index ff5d265e51f0c71d06e9acaf82eede63f9507155..bf6fcc3c8703400c835aeb22b91aa6d18d1ef442 100644 (file)
@@ -1,3 +1,8 @@
+2013-09-20  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       * xterm.c (handle_one_xevent): Revert part of 2013-09-17 change
+       to avoid Bug#15398.
+
 2013-09-19  Eli Zaretskii  <eliz@gnu.org>
 
        * w32reg.c (w32_get_string_resource): Make the first 2 arguments
index 963cd4d8896a70da962ab656b2928f137f648f62..2633bf18d56d7aca4f41c35b4b832f4148fb3f90 100644 (file)
@@ -6101,13 +6101,6 @@ handle_one_xevent (struct x_display_info *dpyinfo,
       f = x_window_to_frame (dpyinfo, event->xexpose.window);
       if (f)
         {
-#if ! GTK_CHECK_VERSION (2, 7, 0)
-          /* This seems to be needed for GTK 2.6.  */
-         x_clear_area (event->xexpose.display,
-                       event->xexpose.window,
-                       event->xexpose.x, event->xexpose.y,
-                       event->xexpose.width, event->xexpose.height);
-#endif
           if (!FRAME_VISIBLE_P (f))
             {
               SET_FRAME_VISIBLE (f, 1);
@@ -6116,8 +6109,18 @@ handle_one_xevent (struct x_display_info *dpyinfo,
               SET_FRAME_GARBAGED (f);
             }
           else
-           expose_frame (f, event->xexpose.x, event->xexpose.y,
-                         event->xexpose.width, event->xexpose.height);
+           {
+#ifdef USE_GTK
+             /* This seems to be needed for GTK 2.6 and later, see
+                http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15398.  */
+             x_clear_area (event->xexpose.display,
+                           event->xexpose.window,
+                           event->xexpose.x, event->xexpose.y,
+                           event->xexpose.width, event->xexpose.height);
+#endif
+             expose_frame (f, event->xexpose.x, event->xexpose.y,
+                           event->xexpose.width, event->xexpose.height);
+           }
         }
       else
         {