the last parameter of XChangeProperty is the number of elements.. and when the element format is 32.. the element is "long" so we have 5 long elements here.
Yes this seems confusing as on mac+linux Long is either 32 or 64bits depending on the architecture, but this is how the X11 protocol is defined. Thus 5 is the correct value for the nelts here. Not 5 or 10 depending on the architecture. More info on the confusion https://bugs.freedesktop.org/show_bug.cgi?id=16802
BIN
test/shapes/p01_shape24.bmp
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
test/shapes/p01_shape32alpha.bmp
Normal file
|
After Width: | Height: | Size: 1.6 MiB |
BIN
test/shapes/p01_shape8.bmp
Normal file
|
After Width: | Height: | Size: 401 KiB |
BIN
test/shapes/p02_shape24.bmp
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
test/shapes/p02_shape32alpha.bmp
Normal file
|
After Width: | Height: | Size: 1.6 MiB |
BIN
test/shapes/p02_shape8.bmp
Normal file
|
After Width: | Height: | Size: 401 KiB |
BIN
test/shapes/p03_shape24.bmp
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
test/shapes/p03_shape8.bmp
Normal file
|
After Width: | Height: | Size: 401 KiB |
BIN
test/shapes/p04_shape1.bmp
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
test/shapes/p04_shape24.bmp
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
test/shapes/p04_shape32alpha.bmp
Normal file
|
After Width: | Height: | Size: 1.6 MiB |
BIN
test/shapes/p04_shape8.bmp
Normal file
|
After Width: | Height: | Size: 401 KiB |
BIN
test/shapes/p05_shape8.bmp
Normal file
|
After Width: | Height: | Size: 401 KiB |
BIN
test/shapes/p06_shape1alpha.bmp
Normal file
|
After Width: | Height: | Size: 1.6 MiB |
BIN
test/shapes/p06_shape24.bmp
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
test/shapes/p06_shape32alpha.bmp
Normal file
|
After Width: | Height: | Size: 1.6 MiB |
BIN
test/shapes/p06_shape8.bmp
Normal file
|
After Width: | Height: | Size: 401 KiB |
BIN
test/shapes/p07_shape24.bmp
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
test/shapes/p07_shape32alpha.bmp
Normal file
|
After Width: | Height: | Size: 1.6 MiB |
BIN
test/shapes/p07_shape8.bmp
Normal file
|
After Width: | Height: | Size: 401 KiB |
BIN
test/shapes/p08_shape24.bmp
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
test/shapes/p08_shape32alpha.bmp
Normal file
|
After Width: | Height: | Size: 1.6 MiB |
BIN
test/shapes/p08_shape8.bmp
Normal file
|
After Width: | Height: | Size: 401 KiB |
BIN
test/shapes/p09_shape24.bmp
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
test/shapes/p09_shape32alpha.bmp
Normal file
|
After Width: | Height: | Size: 1.6 MiB |
BIN
test/shapes/p09_shape8.bmp
Normal file
|
After Width: | Height: | Size: 401 KiB |
BIN
test/shapes/p10_shape1.bmp
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
test/shapes/p10_shape24.bmp
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
test/shapes/p10_shape32alpha.bmp
Normal file
|
After Width: | Height: | Size: 1.6 MiB |
BIN
test/shapes/p10_shape8.bmp
Normal file
|
After Width: | Height: | Size: 401 KiB |
BIN
test/shapes/p11_shape24.bmp
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
test/shapes/p11_shape32alpha.bmp
Normal file
|
After Width: | Height: | Size: 1.6 MiB |
BIN
test/shapes/p11_shape8.bmp
Normal file
|
After Width: | Height: | Size: 401 KiB |
BIN
test/shapes/p12_shape24.bmp
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
test/shapes/p12_shape8.bmp
Normal file
|
After Width: | Height: | Size: 401 KiB |
BIN
test/shapes/p13_shape24.bmp
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
test/shapes/p13_shape32alpha.bmp
Normal file
|
After Width: | Height: | Size: 1.6 MiB |
BIN
test/shapes/p13_shape8.bmp
Normal file
|
After Width: | Height: | Size: 401 KiB |
BIN
test/shapes/p14_shape24.bmp
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
test/shapes/p14_shape8.bmp
Normal file
|
After Width: | Height: | Size: 401 KiB |
BIN
test/shapes/p15_shape24.bmp
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
test/shapes/p15_shape32alpha.bmp
Normal file
|
After Width: | Height: | Size: 1.6 MiB |
BIN
test/shapes/p15_shape8.bmp
Normal file
|
After Width: | Height: | Size: 401 KiB |
BIN
test/shapes/p16_shape1.bmp
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
test/shapes/p16_shape24.bmp
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
test/shapes/p16_shape8.bmp
Normal file
|
After Width: | Height: | Size: 401 KiB |
BIN
test/shapes/trollface_24.bmp
Normal file
|
After Width: | Height: | Size: 192 KiB |
BIN
test/shapes/trollface_32alpha.bmp
Normal file
|
After Width: | Height: | Size: 256 KiB |