summaryrefslogtreecommitdiff
path: root/src/XIint.h
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2006-10-15 00:03:57 -0700
committerJamey Sharp <jamey@minilop.net>2006-10-15 00:33:41 -0700
commit5dda1e1509d40ef64ebc816ce538cef462a4fa51 (patch)
treefc77232bf21e59247e95f77f0177a4114b0327a1 /src/XIint.h
parent8e317d390d1ef8f2c072957355b5d71db3b89c43 (diff)
Don't call XInput_find_display in _XiGetExtensionVersion, while the Display lock is held.
_XiGetExtensionVersion has two callers. One had already called XInput_find_display, and the other could easily do so outside the Display lock. So I change the _XiGetExtensionVersion interface to accept a previously-computed XExtDisplayInfo from the caller. Besides being more correct, this should be slightly faster. :-) Thanks to Magnus Kessler <Magnus.Kessler@gmx.net> for identifying the bug and proposing a workaround.
Diffstat (limited to 'src/XIint.h')
-rw-r--r--src/XIint.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XIint.h b/src/XIint.h
index ba965a6..ae6d33f 100644
--- a/src/XIint.h
+++ b/src/XIint.h
@@ -12,6 +12,6 @@ extern XExtDisplayInfo *XInput_find_display(Display *);
extern int _XiCheckExtInit(Display *, int);
-extern XExtensionVersion *_XiGetExtensionVersion(Display *, _Xconst char *);
+extern XExtensionVersion *_XiGetExtensionVersion(Display *, _Xconst char *, XExtDisplayInfo *);
#endif