# This patch comes from upstream commit c0620e432650e81062c1967cc669829dbd29b310. # gtk: Don't assume all GdkDisplays are GdkX11Displays: broadway/wayland --- src/canberra-gtk-module.c.orig +++ src/canberra-gtk-module.c @@ -307,6 +307,11 @@ static gint window_get_desktop(GdkDisplay *d, GdkWindow *w) { guchar *data = NULL; gint ret = -1; +#ifdef GDK_IS_X11_DISPLAY + if (!GDK_IS_X11_DISPLAY(d)) + return 0; +#endif + if (XGetWindowProperty(GDK_DISPLAY_XDISPLAY(d), GDK_WINDOW_XID(w), gdk_x11_get_xatom_by_name_for_display(d, "_NET_WM_DESKTOP"), 0, G_MAXLONG, False, XA_CARDINAL, &type_return, @@ -335,6 +340,11 @@ static gint display_get_desktop(GdkDisplay *d) { guchar *data = NULL; gint ret = -1; +#ifdef GDK_IS_X11_DISPLAY + if (!GDK_IS_X11_DISPLAY(d)) + return 0; +#endif + if (XGetWindowProperty(GDK_DISPLAY_XDISPLAY(d), DefaultRootWindow(GDK_DISPLAY_XDISPLAY(d)), gdk_x11_get_xatom_by_name_for_display(d, "_NET_CURRENT_DESKTOP"), 0, G_MAXLONG, False, XA_CARDINAL, &type_return, @@ -365,6 +375,11 @@ static gboolean window_is_xembed(GdkDisplay *d, GdkWindow *w) { gboolean ret = FALSE; Atom xembed; +#ifdef GDK_IS_X11_DISPLAY + if (!GDK_IS_X11_DISPLAY(d)) + return FALSE; +#endif + /* Gnome Panel applets are XEMBED windows. We need to make sure we * ignore them */ --- src/canberra-gtk.c.orig +++ src/canberra-gtk.c @@ -185,6 +185,11 @@ static gint window_get_desktop(GdkDisplay *d, GdkWindow *w) { guchar *data = NULL; gint ret = -1; +#ifdef GDK_IS_X11_DISPLAY + if (!GDK_IS_X11_DISPLAY(d)) + return 0; +#endif + if (XGetWindowProperty(GDK_DISPLAY_XDISPLAY(d), GDK_WINDOW_XID(w), gdk_x11_get_xatom_by_name_for_display(d, "_NET_WM_DESKTOP"), 0, G_MAXLONG, False, XA_CARDINAL, &type_return, 23ef788b3fff804d017247c4fee170b693c533d'>root/emacs/guix-main.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2016-06-01 22:56:33 +0200
committerLudovic Courtès <ludo@gnu.org>2016-06-01 22:56:33 +0200
commitd23ef788b3fff804d017247c4fee170b693c533d (patch)
tree5c3589cfba2ea9abe586c20da822ee6e936f8540 /emacs/guix-main.scm
parent4a23818659b0f46f5730d9501e7cfe87cc81e45a (diff)
downloadguix-d23ef788b3fff804d017247c4fee170b693c533d.tar.gz
guix-d23ef788b3fff804d017247c4fee170b693c533d.zip
doc: Clarify non-interference when installed on a foreign distro.
Suggested by Hartmut Goebel <h.goebel@crazy-compilers.com>. * doc/guix.texi (Installation): Add paragraph explaining that files live in two directories.
Diffstat (limited to 'emacs/guix-main.scm')
0 files changed, 0 insertions, 0 deletions