Wed Jul 14 16:16:48 2004 Michael Jennings (mej)

Applied patch from Kim Woelders <kim@woelders.dk> to fix setting of
_NET_WM_ICON property.

Fixed a couple warnings.
----------------------------------------------------------------------


SVN revision: 10834
This commit is contained in:
Michael Jennings 2004-07-14 20:18:30 +00:00
parent d493c1b5d5
commit 9963e03658
4 changed files with 22 additions and 4 deletions

View File

@ -5229,3 +5229,10 @@ Mon Jun 28 12:34:36 2004 Michael Jennings (mej)
Cleaning up some warnings.
----------------------------------------------------------------------
Wed Jul 14 16:16:48 2004 Michael Jennings (mej)
Applied patch from Kim Woelders <kim@woelders.dk> to fix setting of
_NET_WM_ICON property.
Fixed a couple warnings.
----------------------------------------------------------------------

View File

@ -53,6 +53,13 @@
# undef HAVE_SYS_IOCTL_H
# endif
# ifdef __GNUC__
# define _GNU_SOURCE
# else
# define _XOPEN_SOURCE 600
# define _XOPEN_SOURCE_EXTENDED 1
# endif
/********************* Debugging stuff *********************/
/* As Keith Bunge would say, don't crap with the debugging stuff below
* unless you develop this mess. :^) -- mej

View File

@ -2212,9 +2212,10 @@ set_icon_pixmap(char *filename, XWMHints * pwm_hints)
wm_hints->flags |= IconPixmapHint | IconMaskHint;
#endif
/* Set the EWMH icon hint for stupid GNOME WM's. */
XChangeProperty(Xdisplay, TermWin.parent, props[PROP_EWMH_ICON], XA_CARDINAL, 32, PropModeReplace, (unsigned char *) icon_data, sizeof(icon_data));
/* Set the EWMH icon hint for _NET_WM-compliant GNOME WM's. */
XChangeProperty(Xdisplay, TermWin.parent,
props[PROP_EWMH_ICON], XA_CARDINAL, 32, PropModeReplace,
(unsigned char *) icon_data, sizeof(icon_data) / sizeof(CARD32));
imlib_free_image_and_decache();
/* Only set the hints ourselves if we were passed a NULL pointer for pwm_hints */

View File

@ -1324,7 +1324,10 @@ process_window_mode(unsigned int nargs, int args[])
Window dummy_child;
int dummy_x, dummy_y;
unsigned int dummy_border, dummy_depth;
char buff[1024], *name;
char buff[1024];
#ifdef ENABLE_NAME_REPORTING_ESCAPES
char *name;
#endif
if (!nargs)
return;