the sshait

list[i] = (gpointer)(long)data[i];  // Explicit cast to gpointer

g_message("WinID: %p", list[i]);   // Correct format specifier





list[i] = data[i];

g_message("WinID: %d", list[i]);