From a334d10583a3c28ab90b5e308b92308f9d36af38 Mon Sep 17 00:00:00 2001 From: Thierry Lorthiois Date: Sun, 8 Aug 2010 22:01:39 +0000 Subject: [PATCH] reverted r528 : it s breaking amd64/x86_64 --- src/taskbar/task.c | 4 ++-- src/util/window.c | 6 +++--- src/util/window.h | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/taskbar/task.c b/src/taskbar/task.c index 06fdb84..921f067 100644 --- a/src/taskbar/task.c +++ b/src/taskbar/task.c @@ -209,7 +209,7 @@ void get_icon (Task *tsk) int i; Imlib_Image img = NULL; XWMHints *hints = 0; - int32_t *data = 0; + long *data = 0; int k; for (k=0; kg_task.icon_size1); diff --git a/src/util/window.c b/src/util/window.c index c6bceb3..f4ef6a0 100644 --- a/src/util/window.c +++ b/src/util/window.c @@ -218,7 +218,7 @@ int window_is_active (Window win) } -int get_icon_count (int32_t *data, int num) +int get_icon_count (long *data, int num) { int count, pos, w, h; @@ -236,10 +236,10 @@ int get_icon_count (int32_t *data, int num) } -int32_t *get_best_icon (int32_t *data, int icon_count, int num, int *iw, int *ih, int best_icon_size) +long *get_best_icon (long *data, int icon_count, int num, int *iw, int *ih, int best_icon_size) { int width[icon_count], height[icon_count], pos, i, w, h; - int32_t *icon_data[icon_count]; + long *icon_data[icon_count]; /* List up icons */ pos = 0; diff --git a/src/util/window.h b/src/util/window.h index 79453ad..47798cb 100644 --- a/src/util/window.h +++ b/src/util/window.h @@ -22,8 +22,8 @@ int window_is_urgent (Window win); int window_is_hidden (Window win); int window_is_active (Window win); int window_is_skip_taskbar (Window win); -int get_icon_count (int32_t *data, int num); -int32_t *get_best_icon (int32_t *data, int icon_count, int num, int *iw, int *ih, int best_icon_size); +int get_icon_count (long *data, int num); +long *get_best_icon (long *data, int icon_count, int num, int *iw, int *ih, int best_icon_size); void window_maximize_restore (Window win); void window_toggle_shade (Window win); int window_get_desktop (Window win); -- 2.45.2