* src/xterm.c (handle_one_xevent) [USE_GTK]: Don't obey
ConfigureNotify events if the frame is not visible. (Bug#44002)
Copyright-paperwork-exempt: yes
#endif
#ifdef USE_GTK
if (!f
- && (f = any)
- && configureEvent.xconfigure.window == FRAME_X_WINDOW (f))
+ && (f = any)
+ && configureEvent.xconfigure.window == FRAME_X_WINDOW (f)
+ && FRAME_VISIBLE_P(f))
{
block_input ();
if (FRAME_X_DOUBLE_BUFFERED_P (f))
configureEvent.xconfigure.height);
#endif
f = 0;
- }
+ }
#endif
- if (f)
- {
+ if (f && FRAME_VISIBLE_P(f))
+ {
#ifdef USE_GTK
/* For GTK+ don't call x_net_wm_state for the scroll bar
window. (Bug#24963, Bug#25887) */
xic_set_statusarea (f);
#endif
- }
+ }
goto OTHER;
case ButtonRelease: