aboutsummaryrefslogtreecommitdiffstats
path: root/src/xfns.c
diff options
context:
space:
mode:
authorMiles Bader2007-11-11 00:56:44 +0000
committerMiles Bader2007-11-11 00:56:44 +0000
commitf23d76bdefbd4c06e14d69e99e50d35ce91c8226 (patch)
treeded28d1da6df2d0135514bac83074f4ca1c9099a /src/xfns.c
parente2d092da5980a7d05a5428074f8eb4925fa801e8 (diff)
parenta457417ee5ba797ab1c91d35ee957bb7a7f8d4b6 (diff)
downloademacs-f23d76bdefbd4c06e14d69e99e50d35ce91c8226.tar.gz
emacs-f23d76bdefbd4c06e14d69e99e50d35ce91c8226.zip
Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-283
Diffstat (limited to 'src/xfns.c')
-rw-r--r--src/xfns.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/xfns.c b/src/xfns.c
index b176b3ffda5..95efa697110 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -143,11 +143,7 @@ static Lisp_Object Vgtk_version_string;
143 143
144#endif /* USE_GTK */ 144#endif /* USE_GTK */
145 145
146#ifdef HAVE_X11R4
147#define MAXREQUEST(dpy) (XMaxRequestSize (dpy)) 146#define MAXREQUEST(dpy) (XMaxRequestSize (dpy))
148#else
149#define MAXREQUEST(dpy) ((dpy)->max_request_size)
150#endif
151 147
152/* The gray bitmap `bitmaps/gray'. This is done because xterm.c uses 148/* The gray bitmap `bitmaps/gray'. This is done because xterm.c uses
153 it, and including `bitmaps/gray' more than once is a problem when 149 it, and including `bitmaps/gray' more than once is a problem when
@@ -1601,7 +1597,6 @@ x_set_name_internal (f, name)
1601 if (FRAME_X_WINDOW (f)) 1597 if (FRAME_X_WINDOW (f))
1602 { 1598 {
1603 BLOCK_INPUT; 1599 BLOCK_INPUT;
1604#ifdef HAVE_X11R4
1605 { 1600 {
1606 XTextProperty text, icon; 1601 XTextProperty text, icon;
1607 int bytes, stringp; 1602 int bytes, stringp;
@@ -1669,12 +1664,6 @@ x_set_name_internal (f, name)
1669 if (do_free_text_value) 1664 if (do_free_text_value)
1670 xfree (text.value); 1665 xfree (text.value);
1671 } 1666 }
1672#else /* not HAVE_X11R4 */
1673 XSetIconName (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
1674 SDATA (name));
1675 XStoreName (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
1676 SDATA (name));
1677#endif /* not HAVE_X11R4 */
1678 UNBLOCK_INPUT; 1667 UNBLOCK_INPUT;
1679 } 1668 }
1680} 1669}
@@ -1861,23 +1850,6 @@ x_default_scroll_bar_color_parameter (f, alist, prop, xprop, xclass,
1861 1850
1862 1851
1863 1852
1864#if !defined (HAVE_X11R4) && !defined (HAVE_XSETWMPROTOCOLS)
1865
1866Status
1867XSetWMProtocols (dpy, w, protocols, count)
1868 Display *dpy;
1869 Window w;
1870 Atom *protocols;
1871 int count;
1872{
1873 Atom prop;
1874 prop = XInternAtom (dpy, "WM_PROTOCOLS", False);
1875 if (prop == None) return False;
1876 XChangeProperty (dpy, w, prop, XA_ATOM, 32, PropModeReplace,
1877 (unsigned char *) protocols, count);
1878 return True;
1879}
1880#endif /* not HAVE_X11R4 && not HAVE_XSETWMPROTOCOLS */
1881 1853
1882#ifdef USE_X_TOOLKIT 1854#ifdef USE_X_TOOLKIT
1883 1855
@@ -4220,11 +4192,7 @@ select_visual (dpyinfo)
4220 4192
4221 dpyinfo->visual = DefaultVisualOfScreen (screen); 4193 dpyinfo->visual = DefaultVisualOfScreen (screen);
4222 4194
4223#ifdef HAVE_X11R4
4224 vinfo_template.visualid = XVisualIDFromVisual (dpyinfo->visual); 4195 vinfo_template.visualid = XVisualIDFromVisual (dpyinfo->visual);
4225#else
4226 vinfo_template.visualid = dpyinfo->visual->visualid;
4227#endif
4228 vinfo_template.screen = XScreenNumberOfScreen (screen); 4196 vinfo_template.screen = XScreenNumberOfScreen (screen);
4229 vinfo = XGetVisualInfo (dpy, VisualIDMask | VisualScreenMask, 4197 vinfo = XGetVisualInfo (dpy, VisualIDMask | VisualScreenMask,
4230 &vinfo_template, &n_visuals); 4198 &vinfo_template, &n_visuals);