all repos — tint2 @ 937d7faa1f7c70576d755aa87eadd9d079d7659f

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

fixed Issue 282 : third try

git-svn-id: http://tint2.googlecode.com/svn/trunk@528 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
thilor77 thilor77@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

937d7faa1f7c70576d755aa87eadd9d079d7659f

parent

9feef39d6f4029666f6fb02ae5bfdef278b666a4

4 files changed, 7 insertions(+), 8 deletions(-)

jump to
M src/server.csrc/server.c

@@ -171,7 +171,6 @@

result = XGetWindowProperty(server.dsp, win, at, 0, 0x7fffffff, False, type, &type_ret, &format_ret, &nitems_ret, &bafter_ret, &prop_value); // Send back resultcount - // it look some version of gcc doesn't do the cast. so we force it. if (num_results) *num_results = (int)nitems_ret; if (result == Success && prop_value) return prop_value;
M src/taskbar/task.csrc/taskbar/task.c

@@ -209,7 +209,7 @@ if (!panel->g_task.icon) return;

int i; Imlib_Image img = NULL; XWMHints *hints = 0; - long *data = 0; + int32_t *data = 0; int k; for (k=0; k<TASK_STATE_COUNT; ++k) {

@@ -224,7 +224,7 @@ data = server_get_property (tsk->win, server.atom._NET_WM_ICON, XA_CARDINAL, &i);

if (data) { // get ARGB icon int w, h; - long *tmp_data; + int32_t *tmp_data; tmp_data = get_best_icon (data, get_icon_count (data, i), i, &w, &h, panel->g_task.icon_size1);
M src/util/window.csrc/util/window.c

@@ -218,7 +218,7 @@ return (win == get_property32(server.root_win, server.atom._NET_ACTIVE_WINDOW, XA_WINDOW));

} -int get_icon_count (long *data, int num) +int get_icon_count (int32_t *data, int num) { int count, pos, w, h;

@@ -236,10 +236,10 @@ return count;

} -long *get_best_icon (long *data, int icon_count, int num, int *iw, int *ih, int best_icon_size) +int32_t *get_best_icon (int32_t *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; - long *icon_data[icon_count]; + int32_t *icon_data[icon_count]; /* List up icons */ pos = 0;
M src/util/window.hsrc/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 (long *data, int num); -long *get_best_icon (long *data, int icon_count, int num, int *iw, int *ih, int best_icon_size); +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); void window_maximize_restore (Window win); void window_toggle_shade (Window win); int window_get_desktop (Window win);