CtrlCore: X11 and GTK MT fixes (#429)

git-svn-id: svn://ultimatepp.org/upp/trunk@5735 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-01-26 19:23:41 +00:00
parent 688ab69301
commit 13dbe1dd98
14 changed files with 78 additions and 14 deletions

View file

@ -32,7 +32,7 @@ Window Xroot()
String GetProperty(Window w, Atom property, Atom rtype)
{
GuiLock __;
GuiLock __;
String result;
int format;
unsigned long nitems, after = 1;
@ -40,7 +40,6 @@ String GetProperty(Window w, Atom property, Atom rtype)
Atom type = None;
unsigned char *data;
long rsize = minmax((long)(XMaxRequestSize(Xdisplay()) - 100), (long)256, (long)65536);
while(after > 0) {
if(XGetWindowProperty(Xdisplay(), w, property, offset, rsize, 0,
rtype, &type, &format, &nitems, &after, &data) != Success)