Matthias Melcher wrote:
> pass[ing] the address (or ID) of an X-window [seems] suspicious.

        FWIW, while solving an X related STR last night,
        I noticed 'xwininfo -id' takes hexidecimal ID numbers
        on its command line, replete with the "0x" prefix and everything.

        So I get the impression passing around ID's in hex might
        be considered "normal behavior" for processes to tell each
        other about other windows.

        I imagine it's the one way guaranteed to uniquely identify
        a window on an X server, since "window names" aren't necessarily
        unique.

----
[e...@tahoe] $ xwininfo -name Untitled.fl      <-- show a window's info

xwininfo: Window id: 0x3400002 "Untitled.fl"   <-- hex ID printed by xwininfo
                     ^^^^^^^^^
  Absolute upper-left X:  1057
  Absolute upper-left Y:  30
  Relative upper-left X:  5
  Relative upper-left Y:  24
  [..]

[e...@tahoe] $ xwininfo -id 0x3400002          <-- use the hex ID instead of 
name
                        ^^^^^^^^^^^^^
xwininfo: Window id: 0x3400002 "Untitled.fl"   <-- still works

  Absolute upper-left X:  1057
  Absolute upper-left Y:  30
  Relative upper-left X:  5
  Relative upper-left Y:  24
  [..]
----
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to