aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2011-09-19 16:26:57 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-10-07 00:10:25 (GMT)
commit3ac157d607077cb74702f4c876618d684ee0c559 (patch)
tree887644f4da780c47e9ccc9e49c0725d50e0974e0 /src
parente6e81813677d7c3afb7633aaee322efc8c578a97 (diff)
Fix setting the _NET_WM_ICON hint on 64-bit systems.
When Xlib says '32' it actually means 'unsigned long'. Even if that is actually 64 bits Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/xcommon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xcommon.c b/src/xcommon.c
index 227296b..a62d4f5 100644
--- a/src/xcommon.c
+++ b/src/xcommon.c
@@ -207,7 +207,7 @@ static const char *tvtime_icon =
" "
" " ;
-static void load_icon( uint32_t *data )
+static void load_icon( long *data )
{
int i;
@@ -1001,7 +1001,7 @@ int xcommon_open_display( const char *user_geometry, int aspect, int verbose )
/* Set the icon on the window. */
{
- uint32_t *data = malloc( 1026 * 4 );
+ long *data = malloc( (32*32 + 2) * sizeof(long) );
if( data ) {
load_icon( data );
XChangeProperty( display, wm_window, net_wm_icon, cardinal, 32,

Privacy Policy