Bug 1394 - NEWT X11Window didn't gather inset at window creation (properly)
Summary: NEWT X11Window didn't gather inset at window creation (properly)
Status: RESOLVED FIXED
Alias: None
Product: Newt
Classification: JogAmp
Component: x11 (show other bugs)
Version: 2.4.0
Hardware: All all
: P4 normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2019-09-11 04:14 CEST by Sven Gothel
Modified: 2019-09-11 04:17 CEST (History)
0 users

See Also:
Type: DEFECT
SCM Refs:
b8db98376069a72ad40b7ef2fe2d9003aea2b091 fe6600234cafe16afb1d06a0254d2135ffb71b12
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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