Simple reproducer:
python -c 'from gi.repository import GdkX11; display = GdkX11.X11Display(); print("display:", display); fd = GdkX11.X11Window.foreign_new_for_display(display, 1); print("foreign:", fd); origin = fd.get_origin(); print("origin:", origin)'
Simple reproducer:
python -c 'from gi.repository import GdkX11; display = GdkX11. X11Display( ); print("display:", display); fd = GdkX11. X11Window. foreign_ new_for_ display( display, 1); print("foreign:", fd); origin = fd.get_origin(); print("origin:", origin)'