Bug 1413

Summary: NEWT X11Window: NewtWindows_getFrameExtends(..) may hang on XPeekEvent(..)
Product: [JogAmp] Newt Reporter: Sven Gothel <sgothel>
Component: x11Assignee: Sven Gothel <sgothel>
Status: RESOLVED FIXED    
Severity: critical    
Priority: P4    
Version: 2.4.0   
Hardware: All   
OS: all   
Type: DEFECT SCM Refs:
578edfc20915e2e2aa18aa06e49f7341f86990c4
Workaround: ---

Description Sven Gothel 2019-12-06 08:39:58 CET
The wait loop uses XPeekEvent(dpy, &e),
which can block indefinite if queue is empty.

Replace with timeout only _and_ only wait on CreateWindow0(..)
not when queried via X11Display dispatch loop on events 
when it is assumed the information has been propagated already.
Comment 1 Sven Gothel 2019-12-06 08:44:07 CET
commit 578edfc20915e2e2aa18aa06e49f7341f86990c4 fixes this issue as described.