Set the EWMH _NET_WM_ICON window hint on X11 systems
authorparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Sat, 12 Jul 2008 18:28:56 +0000 (18:28 +0000)
committerparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Sat, 12 Jul 2008 18:28:56 +0000 (18:28 +0000)
commit13767e63db3f7850581f50d02c58ba2d89d605d2
tree55cefe791e346f5a22f823f13397d49a831586ef
parentcd5761778b611cb726635f088ffae0084995bb1d
Set the EWMH _NET_WM_ICON window hint on X11 systems

This patch implements window manager icons with 8-bit alpha transparency
on X11 systems.  The window manager must support the _NET_WM_ICON hint
described in the freedesktop.org Extended Window Manager Hints[*]
specification.

SDL does provide a function for setting the window manager icon
(SDL_WM_SetIcon), however, its transparency support is limited to a
simple bitmask describing which pixels are fully opaque and which are
invisible.

Note that the functionality implemented here should be ported to
SDL_WM_SetIcon at some point.

[*] http://standards.freedesktop.org/wm-spec/latest/

git-svn-id: https://s.snth.net/svn/neverball/trunk@2384 78b8d119-cf0a-0410-b17c-f493084dd1d7
Makefile
ball/main.c
putt/main.c
share/syswm.c [new file with mode: 0644]
share/syswm.h [new file with mode: 0644]