[Xcb] xpyb ConfigureWindow argument issues

Johannes Schauer j.schauer at email.de
Fri Oct 9 06:27:59 PDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hello list!

despite virtually no documentation or code examples or even real code in
the interwebs using xpyb i started tinkering around with it and indeed
quickly managed to do (basic) useful stuff.
but there is one thing that is probably no bug but missing knowledge of
how to use it on my side being requests requiring a format mask followed
by integer arguments like:

conn.core.ConfigureWindow(children[0], ConfigWindow.X, [40])

or

conn.core.ConfigureWindow(children[0], ConfigWindow.X | ConfigWindow.Y,
[40, 23])

or the same for width and height.

this one though works as expected:

conn.core.ConfigureWindow(children[0], ConfigWindow.StackMode,
[StackMode.Above])

by chance i figured that when passing values that go into the millions
to ConfigureWindow() as X or Y values the window at least moves a little
bit.
what am i doing wrong?

a complete code example showing the (non) behavior can be seen here [1]

hope this is only an error on my noobish side and no bug :)

cheers
josch

[1] http://pastebin.com/m54aaa3e
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkrPOl8ACgkQXYV+f49DE/XNoACgryrT6B03i7FoAxnmYJilSo4s
JEoAoMiwZNJiqN59VdY9Fs+x1JiU6lRk
=Ii86
-----END PGP SIGNATURE-----


More information about the Xcb mailing list