Do process ConfigureNotify events indicating size changes.
* src/xterm.c (handle_one_xevent): If consecutive ConfigureNotify events don't have the same size, process each one.
This commit is contained in:
parent
e90de8276f
commit
85c12310ff
1 changed files with 6 additions and 1 deletions
|
@ -8407,7 +8407,12 @@ handle_one_xevent (struct x_display_info *dpyinfo,
|
|||
{
|
||||
XNextEvent (dpyinfo->display, &next_event);
|
||||
if (next_event.type != ConfigureNotify
|
||||
|| next_event.xconfigure.window != event->xconfigure.window)
|
||||
|| next_event.xconfigure.window != event->xconfigure.window
|
||||
/* Skipping events with different sizes can lead to a
|
||||
mispositioned mode line at initial window creation.
|
||||
Only drop window motion events for now. */
|
||||
|| next_event.xconfigure.width != event->xconfigure.width
|
||||
|| next_event.xconfigure.height != event->xconfigure.height)
|
||||
{
|
||||
XPutBackEvent (dpyinfo->display, &next_event);
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue