[Xcb] Endianness question

Julien Danjou julien at danjou.info
Mon Dec 1 02:58:37 PST 2008


At 1228115410 time_t, Ulrich Eckhardt wrote:
> Just give me some example code and I will try. ;)

Attached. Compile with:
 gcc `pkg-config --libs --cflags xcb-icccm` xcb-util-test-hints.c -o xcb-util-test-hints

Then run with:
xcb-util-test-hints <windowid in decimal>

You can get window id with xwininfo.

Here, on a urxvt window it gives:
% ./xcb-util-test-hints 29360136
Getting hints for 0x1c00008…
Dumping values:
Flags: 43
  XCB_WM_HINT_INPUT
  XCB_WM_HINT_STATE
  XCB_WM_HINT_WINDOW_GROUP
Input: 1
Initial state: 1
Icon pixmap: 0
Icon window: 0
Icon mask: 0
Icon x, y: 0, 0
Window group: 1c00008

On Iceweasel:
% ./xcb-util-test-hints 20971675
Getting hints for 0x140009b…
Dumping values:
Flags: 67
  XCB_WM_HINT_INPUT
  XCB_WM_HINT_STATE
  XCB_WM_HINT_ICON_PIXMAP
  XCB_WM_HINT_ICON_MASK
  XCB_WM_HINT_WINDOW_GROUP
Input: 1
Initial state: 1
Icon pixmap: 140009e
Icon window: 0
Icon mask: 14000a0
Icon x, y: 0, 0
Window group: 1400001

On amd64.

Cheers,
-- 
Julien Danjou
// ᐰ <julien at danjou.info>   http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/xcb/attachments/20081201/8a724f50/attachment.pgp 


More information about the Xcb mailing list