Clutter main_quit() does not terminate GJS programs
@ebassi
Submitted by Emmanuele Bassi Link to original bug (#742065)
Description
a simple example:
const Clutter = imports.gi.Clutter;
const Mainloop = imports.mainloop;
Clutter.init(null);
let s = new Clutter.Stage({ width: 200, height: 200, });
s.connect('destroy', function() { Clutter.main_quit(); });
s.show();
Clutter.main();
if I run it with gjs, and press the window's close button, gjs won't quit after the control has been returned to it.
this does not happen when using GTK+, or when using the Mainloop module instead of Clutter.main()/main_quit().
the equivalent C and Python code does not exhibit issues either.
Edited by Philip Chimento