mirror of
https://github.com/Rafostar/clapper.git
synced 2025-09-01 00:41:58 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user