mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-02-05 07:40:35 +01:00
dbus-launch-x11: print a window ID portably
On LP64 platforms, a Window is unsigned long. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
This commit is contained in:
parent
6c58015ebe
commit
cd4e34408e
1 changed files with 2 additions and 1 deletions
|
|
@ -367,7 +367,8 @@ set_address_in_x11(char *address, pid_t pid)
|
|||
wid = XCreateWindow (xdisplay, RootWindow (xdisplay, 0), -20, -20, 10, 10,
|
||||
0, CopyFromParent, InputOnly, CopyFromParent,
|
||||
0, NULL);
|
||||
verbose ("Created window %d\n", wid);
|
||||
/* The type of a Window varies, so cast it to something reasonable */
|
||||
verbose ("Created window %lu\n", (unsigned long) wid);
|
||||
|
||||
/* Save the property in the window */
|
||||
XChangeProperty (xdisplay, wid, address_atom, XA_STRING, 8, PropModeReplace,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue