Diff of /src/gtkvideo.c [74fa95] .. [cd3bc9]  Maximize  Restore

  Switch to side-by-side view

--- a/src/gtkvideo.c
+++ b/src/gtkvideo.c
@@ -2252,9 +2252,12 @@
       Window id = inhibit
 		? gdk_x11_drawable_get_xid (gtk_widget_get_toplevel (&gtv->widget)->window)
 		: gtv->priv->xdg_active;
-      if (!id || !xdg_screensaver_poke (inhibit ? "suspend" : "resume", id))
+      int ret = 0;
+      if (!id || !(ret = xdg_screensaver_poke (inhibit ? "suspend" : "resume", id)))
       {
-        gtv->priv->xdg_active = id;
+        if (ret < 0) /* if this happens, xdg-screensaver isn't there */
+          gtv->priv->have_xdg_screensaver = 0;
+        gtv->priv->xdg_active = inhibit ? id : 0;
 	return FALSE;
       }
     }

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks