mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
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:
parent
688ab69301
commit
13dbe1dd98
14 changed files with 78 additions and 14 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue