From: Andreas Fink Date: Sat, 17 Oct 2009 07:03:44 +0000 (+0000) Subject: *fix* use copied data for task icons on 64bit X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=fdc964e0b4e91a5246a0897f62caecfc04ccf9db;p=chaz%2Ftint2 *fix* use copied data for task icons on 64bit *add* comment added why I commented a complete section --- diff --git a/src/taskbar/task.c b/src/taskbar/task.c index 39dfd64..25c383e 100644 --- a/src/taskbar/task.c +++ b/src/taskbar/task.c @@ -208,7 +208,7 @@ void get_icon (Task *tsk) int length = w * h; for (i = 0; i < length; ++i) icon_data[i] = tmp_data[i]; - img = imlib_create_image_using_data (w, h, icon_data); + img = imlib_create_image_using_copied_data (w, h, icon_data); #else img = imlib_create_image_using_data (w, h, (DATA32*)tmp_data); #endif diff --git a/src/tint.c b/src/tint.c index d098562..a64f92f 100644 --- a/src/tint.c +++ b/src/tint.c @@ -517,6 +517,9 @@ void event_property_notify (XEvent *e) panel_refresh = 1; } } +// We do not check for the iconified state, since it only unsets our active window +// but in openbox a shaded window is considered iconified. So we would loose the active window +// property on unshading it again (commented 01.10.2009) // else if (at == server.atom.WM_STATE) { // // Iconic state // // TODO : try to delete following code