From 655abbdda828d4e2f998d7d8419a5101341d4d8f Mon Sep 17 00:00:00 2001 From: Bradford Hovinen Date: Sat, 21 Oct 2000 21:26:04 +0000 Subject: [PATCH] Fix only_if_exists parameters for XInternAtom 2000-10-21 Bradford Hovinen * capplets/new-background-properties/applier.c (is_nautilus_running): Fix only_if_exists parameters for XInternAtom --- ChangeLog | 1 + capplets/background/applier.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index b1b821e47..8fd10a129 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,7 @@ (renderer_render_to_screen): Set root pixmap to None (i.e., destroy root pixmap) if we're rendering a solid background to the root window + (is_nautilus_running): Fix only_if_exists parameters for XInternAtom 2000-10-16 Stanislav Brabec diff --git a/capplets/background/applier.c b/capplets/background/applier.c index b1d28196a..d86319332 100644 --- a/capplets/background/applier.c +++ b/capplets/background/applier.c @@ -1146,7 +1146,7 @@ is_nautilus_running (void) gint error; window_id_atom = XInternAtom (GDK_DISPLAY (), - "NAUTILUS_DESKTOP_WINDOW_ID", False); + "NAUTILUS_DESKTOP_WINDOW_ID", True); if (window_id_atom == None) return FALSE; @@ -1163,12 +1163,12 @@ is_nautilus_running (void) if (actual_type != XA_WINDOW) return FALSE; if (actual_format != 32) return FALSE; - wmclass_atom = XInternAtom (GDK_DISPLAY (), "WM_CLASS"); + wmclass_atom = XInternAtom (GDK_DISPLAY (), "WM_CLASS", False); gdk_error_trap_push (); retval = XGetWindowProperty (GDK_DISPLAY (), nautilus_xid, - wmclass_atom, 0, 23, False, XA_STRING, + wmclass_atom, 0, 24, False, XA_STRING, &actual_type, &actual_format, &nitems, &bytes_after, &data);