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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user