aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/native/X11Common.h
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-12-06 08:43:05 +0100
committerSven Gothel <[email protected]>2019-12-06 08:43:05 +0100
commit578edfc20915e2e2aa18aa06e49f7341f86990c4 (patch)
tree84925ab08c9745b42db1d59bc3a26b0776be4858 /src/newt/native/X11Common.h
parentddc29141207d9c69f8558265a464cdc4bc014d65 (diff)
Bug 1413 - NEWT X11Window: NewtWindows_getFrameExtends(..) may hang on XPeekEvent(..)
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.
Diffstat (limited to 'src/newt/native/X11Common.h')
-rw-r--r--src/newt/native/X11Common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newt/native/X11Common.h b/src/newt/native/X11Common.h
index 978cfffed..f570b7d39 100644
--- a/src/newt/native/X11Common.h
+++ b/src/newt/native/X11Common.h
@@ -101,7 +101,7 @@ typedef struct {
JavaWindow * getJavaWindowProperty(JNIEnv *env, Display *dpy, Window window, jlong javaObjectAtom, Bool showWarning);
Status NewtWindows_getRootAndParent (Display *dpy, Window w, Window * root_return, Window * parent_return);
-Bool NewtWindows_updateInsets(Display *dpy, JavaWindow * w, int *left, int *right, int *top, int *bottom);
+Bool NewtWindows_updateInsets(Display *dpy, JavaWindow * w, Bool wait, int *left, int *right, int *top, int *bottom);
Bool NewtWindows_updateMaximized(Display *dpy, JavaWindow * w, uint32_t netWMState);
#define _MASK_NET_WM_STATE ( 1 << 0 )