mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 08:21:59 +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:
@@ -43,13 +43,22 @@ class ClapperApp extends AppBase
|
||||
super.vfunc_open(files, hint);
|
||||
|
||||
this.playlist = files;
|
||||
this._handleAppStart();
|
||||
|
||||
if(!this.doneFirstActivate)
|
||||
this._handleAppStart();
|
||||
else
|
||||
this.setWindowPlaylist(this.active_window);
|
||||
}
|
||||
|
||||
_onWindowShow(window)
|
||||
{
|
||||
super._onWindowShow(window);
|
||||
|
||||
this.setWindowPlaylist(window);
|
||||
}
|
||||
|
||||
setWindowPlaylist(window)
|
||||
{
|
||||
if(!this.playlist.length)
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user