Created
April 29, 2017 14:43
-
-
Save virtuald/87e64c0610ae0204a2969efc48e7ebb4 to your computer and use it in GitHub Desktop.
Segfault on Wayland
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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