
import sys

from gi.repository import Gtk, Gdk

def main(static):
    window = Gtk.Window()
    window.set_size_request(100, 100)
    window.move(0, 0)

    if static:
        window.set_gravity(Gdk.Gravity.STATIC)
        window.set_title("STDummy")
    else:
        window.set_gravity(Gdk.Gravity.NORTH_WEST)
        window.set_title("NWDummy")

    window.present()
    window.connect('delete-event', lambda *a: sys.exit())

    Gtk.main()

if __name__ == "__main__":
    static = int(sys.argv[1])

    main(static)
