gfxlib2: Remove int cast, just in case X11 window id can be 64bit