+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
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);
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
{