LINUX.ORG.RU

История изменений

Исправление Zubok, (текущая версия) :

man XChangeDeviceProperty

И, кстати, в man как раз все написано, но только не про XChangeDeviceProperty, а про XGetDeviceProperty (но страничка одна и та же):

prop_return Returns the data in the specified format. If the returned format is 8, the returned data is represented as a char array. If the returned format is 16, the returned data is represented as an array of short int type and should be cast to that type to obtain the elements. If the returned format is 32, the property data will be stored as an array of longs (which in a 64-bit application will be 64-bit values that are padded in the upper 4 bytes).

При получении считается, что получишь long. Значит, вероятно, и при записи ждет long, но в этом же man об этом не упоминается.

Исходная версия Zubok, :

man XChangeDeviceProperty

И, кстати, в man как раз все написано, но только не про XChangeDeviceProperty, а про XGetDeviceProperty.

prop_return Returns the data in the specified format. If the returned format is 8, the returned data is represented as a char array. If the returned format is 16, the returned data is represented as an array of short int type and should be cast to that type to obtain the elements. If the returned format is 32, the property data will be stored as an array of longs (which in a 64-bit application will be 64-bit values that are padded in the upper 4 bytes).

При получении считается, что получишь long. Значит, вероятно, и при записи ждет long, но в этом же man об этом не упоминается.