Commit 2c0cd900 authored by J. Scott Berg's avatar J. Scott Berg Committed by Eli Zaretskii

Fix bad dimensions of initial frame on VcXsrv

* 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
parent 7dd52bfd
Pipeline #7395 passed with stage
in 75 minutes and 55 seconds
......@@ -8949,8 +8949,9 @@ handle_one_xevent (struct x_display_info *dpyinfo,
#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))
......@@ -8963,10 +8964,10 @@ handle_one_xevent (struct x_display_info *dpyinfo,
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) */
......@@ -9056,7 +9057,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
xic_set_statusarea (f);
#endif
}
}
goto OTHER;
case ButtonRelease:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment