Skip to content

Instantly share code, notes, and snippets.

@virtuald
Created April 29, 2017 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save virtuald/87e64c0610ae0204a2969efc48e7ebb4 to your computer and use it in GitHub Desktop.
Save virtuald/87e64c0610ae0204a2969efc48e7ebb4 to your computer and use it in GitHub Desktop.
Segfault on Wayland
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk
win = Gtk.Window.new(Gtk.WindowType.TOPLEVEL)
win.connect("delete-event", Gtk.main_quit)
win.show_all()
win2 = Gtk.Window.new(Gtk.WindowType.TOPLEVEL)
# yes, I know you shouldn't do this...
win2.set_transient_for(win)
win2.set_type_hint(Gdk.WindowTypeHint.UTILITY)
win2.show_all()
Gtk.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment