fixed Issue 282 : second try

git-svn-id: http://tint2.googlecode.com/svn/trunk@527 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
thilor77
2010-08-08 19:23:54 +00:00
parent 3eb1b736e3
commit 9feef39d6f
4 changed files with 45 additions and 26 deletions

View File

@@ -170,8 +170,9 @@ void *server_get_property (Window win, Atom at, Atom type, int *num_results)
result = XGetWindowProperty(server.dsp, win, at, 0, 0x7fffffff, False, type, &type_ret, &format_ret, &nitems_ret, &bafter_ret, &prop_value);
/* Send back resultcount */
if (num_results) *num_results = nitems_ret;
// Send back resultcount
// it look some version of gcc doesn't do the cast. so we force it.
if (num_results) *num_results = (int)nitems_ret;
if (result == Success && prop_value) return prop_value;
else return 0;