Tag Info

Hot answers tagged

2

Window IDs are given out by the X server. The window manager doesn't get a say. Window IDs encode the client that the window belongs to in the upper 12 bits. The lower 12 bits are assigned sequentially at first, but if an intermediate number becomes free, it can be reused. So comparing window IDs does not give a reliable indication of which window was ...


1

My guess is that they are like PIDs, allocated in ascending order, except when they are not: PIDs wrap around. Let us assume (for now) that they only go up. What would happen on a system that is running for a very long time? Id will get too big, or ID size must be allowed to grow, 32bit, 64bit, 128bit … If they had to go up only then they could run out, ...



Only top voted, non community-wiki answers of a minimum length are eligible