diff --git a/clapper_src/misc.js b/clapper_src/misc.js index ff61fd92..f12e18d4 100644 --- a/clapper_src/misc.js +++ b/clapper_src/misc.js @@ -57,12 +57,10 @@ function inhibitForState(state, window) return; let app = window.get_application(); - let flags = Gtk.ApplicationInhibitFlags.SUSPEND - | Gtk.ApplicationInhibitFlags.IDLE; inhibitCookie = app.inhibit( window, - flags, + Gtk.ApplicationInhibitFlags.IDLE, 'video is playing' ); if(!inhibitCookie) @@ -71,14 +69,12 @@ function inhibitForState(state, window) isInhibited = (inhibitCookie > 0); } else { - //if(!inhibitCookie) + if(!inhibitCookie) return; - /* Uninhibit seems to be broken as of GTK 3.99.4 let app = window.get_application(); app.uninhibit(inhibitCookie); inhibitCookie = null; - */ } debug(`set prevent suspend to: ${isInhibited}`); diff --git a/pkgs/arch/obs/PKGBUILD b/pkgs/arch/obs/PKGBUILD index 481f5fe7..8163732d 100644 --- a/pkgs/arch/obs/PKGBUILD +++ b/pkgs/arch/obs/PKGBUILD @@ -27,7 +27,7 @@ arch=(any) url="https://github.com/Rafostar/clapper" license=("GPL-3.0") depends=( - "gtk4>=3.99.2" + "gtk4>=4.0.0" "hicolor-icon-theme" "gjs" "gst-plugins-base-libs>=1.18.0" diff --git a/pkgs/deb/debian/control b/pkgs/deb/debian/control index 95590ace..fc6db7d1 100644 --- a/pkgs/deb/debian/control +++ b/pkgs/deb/debian/control @@ -14,7 +14,7 @@ Build-Depends: debhelper (>= 10), Package: clapper Architecture: all Depends: gjs (>= 1.50), - gir1.2-gtk-4.0 (>= 3.99.2), + gir1.2-gtk-4.0 (>= 4.0.0), hicolor-icon-theme, libgstreamer1.0-0 (>= 1.18), gstreamer1.0-plugins-base (>= 1.18), diff --git a/pkgs/rpm/clapper.spec b/pkgs/rpm/clapper.spec index 3532450d..6ee1f4fb 100644 --- a/pkgs/rpm/clapper.spec +++ b/pkgs/rpm/clapper.spec @@ -20,7 +20,7 @@ %global appname com.github.rafostar.Clapper %global gst_version 1.18.0 -%global gtk4_version 3.99.2 +%global gtk4_version 4.0.0 Name: clapper Version: 0.0.0