Remove "new-window" functionality

I were never able to get setifactionary results with this because:
* In GTK apps new window is created from the same process
* OpenGL is single-threaded so performance per window is halfed
* GTK4 has problems with rendeing using multiple contexts resulting in some frames being upside down

So for the time being I am removing a non-working option. There is a chance
that it will be fixed and added in future, but for now lets not
advertise a functionality that does not work.
This commit is contained in:
Rafostar
2020-12-24 12:18:17 +01:00
parent 6afbbc767a
commit 094de19018
4 changed files with 12 additions and 12 deletions

View File

@@ -62,7 +62,7 @@ class ClapperAppBase extends Gtk.Application
_handleAppStart()
{
if(this.doneFirstActivate)
return this._onWindowShow(this.active_window);
return;
this._onFirstActivate();
this.active_window.present();
@@ -82,15 +82,11 @@ class ClapperAppBase extends Gtk.Application
this.windowShowSignal = this.active_window.connect(
'show', this._onWindowShow.bind(this)
);
this.doneFirstActivate = true;
}
_onWindowShow(window)
{
if(!this.windowShowSignal)
return;
window.disconnect(this.windowShowSignal);
this.windowShowSignal = null;
}