mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
Do not drop old GTK4 support
Recent GTK4 git is way too buggy. We cannot update the GTK version above 3.99.4 yet. So add compatibility with newer versions without dropping support for older ones.
This commit is contained in:
@@ -322,7 +322,10 @@ class ClapperPlayer extends PlayerBase
|
||||
|
||||
let clapperWidget = this.widget.get_ancestor(Gtk.Grid);
|
||||
if(!clapperWidget.fullscreenMode) {
|
||||
let size = window.get_default_size();
|
||||
let size = (Misc.isOldGtk)
|
||||
? window.get_size()
|
||||
: window.get_default_size();
|
||||
|
||||
if(size[0] > 0 && size[1] > 0)
|
||||
clapperWidget._saveWindowSize(size);
|
||||
}
|
||||
|
Reference in New Issue
Block a user