[gnome-flashback] desktop-background: small fix
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] desktop-background: small fix
- Date: Mon, 13 Oct 2014 05:20:38 +0000 (UTC)
commit 7efc25971f37e915a7008a88056bb73e6a4aa2b7
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Oct 10 02:46:17 2014 +0300
desktop-background: small fix
.../libdesktop-background/desktop-background.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gnome-flashback/libdesktop-background/desktop-background.c
b/gnome-flashback/libdesktop-background/desktop-background.c
index 529aae1..7efe2f5 100644
--- a/gnome-flashback/libdesktop-background/desktop-background.c
+++ b/gnome-flashback/libdesktop-background/desktop-background.c
@@ -161,10 +161,12 @@ event_filter_func (GdkXEvent *xevent,
if (nautilus_raised == FALSE) {
GdkWindow *nautilus = get_nautilus_window (background);
- gdk_window_hide (nautilus);
- gdk_window_show (nautilus);
+ if (GDK_IS_WINDOW (nautilus)) {
+ gdk_window_hide (nautilus);
+ gdk_window_show (nautilus);
- nautilus_raised = TRUE;
+ nautilus_raised = TRUE;
+ }
}
} else {
nautilus_raised = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]