Thiago Macieira thiago at kde.org
Tue Nov 7 14:10:00 GMT 2006

Lubos Lunak wrote:
>> > Ah, so that's why there's the ugly qlonglong in all DBUS calls that
>> > pass window id along? I was hoping there was a way to get rid of
>> > that
>> >
>> > :(.
>> What else would you use in there?
> WId ?

#if defined(Q_WS_X11)
typedef unsigned long  WId;

We can't use long. Imagine the following scenario: a 64-bit system is 
running at the same time a 32- and a 64-bit application. Therefore, on 
the former, WId is 64 bits and on the latter, it's 32 bits. I have no 
idea how X11 generates window IDs, but the point here is: the D-Bus 
signature must be consistent across wordsize. It's either 32 bits or 64 
bits, but not both. Otherwise, the apps can't communicate with each 

>> D-Bus has no concept of "integer whose
>> size is the machine word". And I don't think it should: we've seen
>> what that definition has done to C (int was supposed to be that type,
>> but now that dubious idea has fallen to long, and only on the Unix
>> platforms).

  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20061107/817e1a59/attachment.sig>

More information about the kde-core-devel mailing list