diff options
author | George Lebl <jirka@5z.com> | 2001-01-03 09:09:50 +0000 |
---|---|---|
committer | George Lebl <jirka@src.gnome.org> | 2001-01-03 09:09:50 +0000 |
commit | 42f8f9d33ebd99e750a5e07da19d68ec6846bc44 (patch) | |
tree | b42af01b1d7901e2ca61002ae8e6dcaead7a1097 /libnautilus-private/nautilus-directory-background.c | |
parent | d3c3fc18726707ed24c0a5e8feca6eff4be0fb89 (diff) | |
download | nautilus-42f8f9d33ebd99e750a5e07da19d68ec6846bc44.tar.gz |
Reviewed by Maciej, so if I broke something, blame him.
Wed Jan 03 04:11:01 2001 George Lebl <jirka@5z.com>
Reviewed by Maciej, so if I broke something, blame him.
Fixes #5356
* libnautilus-extensions/nautilus-directory-background.c
(make_root_pixmap): Do what the comment says and actually open
a new display before setting the close down mode to RetainPermanent.
This made nautilus windows stay persistent after a crash or whatnot.
This bug was inherited from control-center.
Diffstat (limited to 'libnautilus-private/nautilus-directory-background.c')
-rw-r--r-- | libnautilus-private/nautilus-directory-background.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/libnautilus-private/nautilus-directory-background.c b/libnautilus-private/nautilus-directory-background.c index be2ffb50e..de249dd4a 100644 --- a/libnautilus-private/nautilus-directory-background.c +++ b/libnautilus-private/nautilus-directory-background.c @@ -468,17 +468,22 @@ nautilus_file_background_receive_root_window_changes (NautilusBackground *backgr static GdkPixmap * make_root_pixmap (gint width, gint height) { + Display *display; Pixmap result; gdk_flush (); - XSetCloseDownMode (gdk_display, RetainPermanent); + display = XOpenDisplay (gdk_display_name); - result = XCreatePixmap (gdk_display, - DefaultRootWindow (gdk_display), + XSetCloseDownMode (display, RetainPermanent); + + result = XCreatePixmap (display, + DefaultRootWindow (display), width, height, DefaultDepthOfScreen (DefaultScreenOfDisplay (GDK_DISPLAY()))); + XCloseDisplay (display); + return gdk_pixmap_foreign_new (result); } |