#!/usr/bin/ruby -w
# Encoding: UTF-8
# frozen_string_literal: true
# =========================================================================== #
require 'gtk2'

socket = Gtk::Socket.new
socket.show
window = Gtk::Window.new
window.add(socket)
window.move(0, 0)
# The following call is only necessary if one of
# the ancestors of the socket is not yet visible.
socket.realize
puts
puts "The ID of the sockets window is #{socket.id}"
puts