Bug 1394

Summary: NEWT X11Window didn't gather inset at window creation (properly)
Product: [JogAmp] Newt Reporter: Sven Gothel <sgothel>
Component: x11Assignee: Sven Gothel <sgothel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P4    
Version: 2.4.0   
Hardware: All   
OS: all   
Type: DEFECT SCM Refs:
b8db98376069a72ad40b7ef2fe2d9003aea2b091 fe6600234cafe16afb1d06a0254d2135ffb71b12
Workaround: ---

Description Sven Gothel 2019-09-11 04:14:55 CEST
NEWT X11Window didn't gather inset at window creation (properly)

X11Window.c's 'NewtWindows_getFrameExtends(..)'
retrieves the insets via XGetWindowProperty on _NET_FRAME_EXTENTS.

Right after window creation this method fails as the WM did not yet 
provide the information as the window has not yet been mapped.

Implementation needs to retry for a certain amount of time (250ms)
and maximum number of attempts (96 XEvent).

This issue surfaced while validating fix for Bug 1393,
testing TestDisplayLifecycle02NEWT also on X11.
Comment 1 Sven Gothel 2019-09-11 04:17:35 CEST
commit b8db98376069a72ad40b7ef2fe2d9003aea2b091
TestDisplayLifecycle*NEWT changes 

commit fe6600234cafe16afb1d06a0254d2135ffb71b12
X11Window.c fix