set_keep_above has no effect
Submitted by lan..@..pol.de
Assigned to gtk-quartz maintainers
Link to original bug (#782029)
Description
I have been trying to implement a modal application launcher (like dmenu) for OSX. Neither with experimental rust bindings nor with python bindings I am able to create a window that is consistently placed above other window. set_keep_above doesn't seem to have any effect. I have also tried set_modal and present with no success. As with native Cocoa such modal windows seem to be possible, I suspect that there is something missing in the backend for this to work.
Here is an example python program to test this.
import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk
win = Gtk.Window() win.set_keep_above(True) win.set_modal(True) win.connect("delete-event", Gtk.main_quit) win.show_all() Gtk.main()
Version: 3.22.x