[eog] EogWindow: Fix critical warning when switching between fullscreen modes
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] EogWindow: Fix critical warning when switching between fullscreen modes
- Date: Tue, 23 Dec 2014 16:55:17 +0000 (UTC)
commit 69a80edd4db7a9adf796e8019a7a70e55230c30b
Author: Felix Riemann <friemann gnome org>
Date: Tue Dec 23 17:52:55 2014 +0100
EogWindow: Fix critical warning when switching between fullscreen modes
src/eog-window.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index 5eb89f2..28a0275 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -2018,7 +2018,9 @@ eog_window_inhibit_screensaver (EogWindow *window)
{
EogWindowPrivate *priv = window->priv;
- g_return_if_fail (priv->fullscreen_idle_inhibit_cookie == 0);
+ /* Already inhibited */
+ if (G_UNLIKELY (priv->fullscreen_idle_inhibit_cookie != 0))
+ return;
eog_debug (DEBUG_WINDOW);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]