Mercurial > emacs
diff src/xfns.c @ 708:030fb4635335
*** empty log message ***
| author | Jim Blandy <jimb@redhat.com> |
|---|---|
| date | Wed, 10 Jun 1992 03:53:16 +0000 |
| parents | 6a15fb0422ef |
| children | 540b047ece4d |
line wrap: on
line diff
--- a/src/xfns.c Wed Jun 10 02:47:07 1992 +0000 +++ b/src/xfns.c Wed Jun 10 03:53:16 1992 +0000 @@ -1,11 +1,11 @@ /* Functions for the X window system. - Copyright (C) 1989 Free Software Foundation. + Copyright (C) 1989, 1992 Free Software Foundation. This file is part of GNU Emacs. GNU Emacs is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 1, or (at your option) +the Free Software Foundation; either version 2, or (at your option) any later version. GNU Emacs is distributed in the hope that it will be useful, @@ -1045,6 +1045,17 @@ if (s->display.x->window_desc) { +#ifdef HAVE_X11 + XTextProperty prop; + prop.value = XSTRING (arg)->data; + prop.encoding = XA_STRING; + prop.format = 8; + prop.nitems = XSTRING (arg)->size; + BLOCK_INPUT; + XSetWMName (XDISPLAY s->display.x->window_desc, &prop); + XSetWMIconName (XDISPLAY s->display.x->window_desc, &prop); + UNBLOCK_INPUT; +#else s->name = arg; BLOCK_INPUT; XStoreName (XDISPLAY s->display.x->window_desc, @@ -1052,6 +1063,7 @@ XSetIconName (XDISPLAY s->display.x->window_desc, (char *) XSTRING (arg)->data); UNBLOCK_INPUT; +#endif } } @@ -2102,8 +2114,19 @@ x_set_resize_hint (s); /* Tell the server the window's default name. */ - +#ifdef HAVE_X11 + { + XTextProperty prop; + prop.value = XSTRING (s->name)->data; + prop.encoding = XA_STRING; + prop.format = 8; + prop.nitems = XSTRING (s->name)->size; + XSetWMName (XDISPLAY s->display.x->window_desc, &prop); + } +#else XStoreName (XDISPLAY s->display.x->window_desc, XSTRING (s->name)->data); +#endif + /* Now override the defaults with all the rest of the specified parms. */ tem = x_get_arg (parms, intern ("unsplittable"), 0, 0);
