News for hackers. Stuff that matters.
Re:I found an 8 years old bug in Xorg by asveikau on Sunday June 23, 2024 @12:25PM (#40768571)
> Basically when a window is created, we receive an event. After getting that event, we lock the X server, then ask it about the new window. And sometimes, the window is just not there

Relying on this sounds like a race condition even if the lock is working. In the time between you process the event and getting the lock, the window could have been destroyed.

Re:I found an 8 years old bug in Xorg by marmight on Sunday June 23, 2024 @12:43PM (#40768717)
I don't know if it is sufficient to prevent the race, but the article does mention that they check for DestroyNotify events after the grab.
Re:I found an 8 years old bug in Xorg by asveikau on Sunday June 23, 2024 @01:38PM (#40769114)
Ooh, that sounds good. I must have missed that part.