- XErrorHandler olderrorhandler = XSetErrorHandler(TempErrorHandler);
-
- XGetWindowProperty( LXVST_XDisplay, //The display
- window, //The Window
- atom, //The property
- 0, //Offset into the data
- 1, //Number of 32Bit chunks of data
- false, //false = don't delete the property
- AnyPropertyType, //Required property type mask
- &userType, //Actual type returned
- &userSize, //Actual format returned
- &userCount, //Actual number of items stored in the returned data
- &bytes, //Number of bytes remaining if a partial read
- &data); //The actual data read
-
- if(LXVST_xerror == false && userCount == 1)
- result = *(int*)data;
+ XErrorHandler olderrorhandler = XSetErrorHandler (TempErrorHandler);
+
+ XGetWindowProperty (LXVST_XDisplay, // The display
+ window, // The Window
+ atom, // The property
+ 0, // Offset into the data
+ 1, // Number of 32Bit chunks of data
+ false, // false = don't delete the property
+ AnyPropertyType, // Required property type mask
+ &userType, // Actual type returned
+ &userSize, // Actual format returned
+ &userCount, // Actual number of items stored in the returned data
+ &bytes, // Number of bytes remaining if a partial read
+ &data); // The actual data read
+
+ if (LXVST_xerror == false && userCount == 1) {
+ result = *(int*)data;
+ }