/* is it ok without client's ack ?*/
if (source->image_path)
{
- RSMDBG("delete image %s", NULL, source->common.ec, "SOURCE", source, source->image_path);
- ecore_file_remove(source->image_path);
+ if (!e_config->hold_prev_win_img)
+ {
+ RSMDBG("IMG del %s", NULL, source->common.ec, "SOURCE", source, source->image_path);
+ ecore_file_remove(source->image_path);
+ }
eina_stringshare_del(source->image_path);
}
/* remove previous file */
if ((source->image_path) && (e_util_strcmp(source->image_path, td->image_path)))
{
- ecore_file_remove(source->image_path);
+ if (!e_config->hold_prev_win_img)
+ {
+ RSMDBG("IMG del %s", ec->pixmap, ec, "SOURCE", source, source->image_path);
+ ecore_file_remove(source->image_path);
+ }
eina_stringshare_del(source->image_path);
}
source->image_path = eina_stringshare_add(td->image_path);
_remote_source_send_image_update(source);
}
else
- ecore_file_remove(td->image_path);
+ {
+ RSMDBG("IMG not matched. del. src:%s td:%s", ec->pixmap, ec, "SOURCE",
+ source, source->image_path, td->image_path);
+ ecore_file_remove(td->image_path);
+ }
end:
if (ec)
e_object_unref(E_OBJECT(ec));
e_comp_wl_buffer_reference(&source->buffer_ref, NULL);
}
- if (td->image_path)
- ecore_file_remove(td->image_path);
+ if (!e_config->hold_prev_win_img)
+ {
+ if (td->image_path)
+ {
+ RSMDBG("IMG del %s", NULL, source->common.ec, "SOURCE", source, td->image_path);
+ ecore_file_remove(td->image_path);
+ }
+ }
if (source->deleted)
{
E_CONFIG_VAL(D, T, conformant_ack_timeout, DOUBLE);
E_CONFIG_VAL(D, T, calc_vis_without_effect, UCHAR);
E_CONFIG_VAL(D, T, save_win_buffer, UCHAR);
+ E_CONFIG_VAL(D, T, hold_prev_win_img, UCHAR);
E_CONFIG_VAL(D, T, indicator_plug_name, STR);
E_CONFIG_VAL(D, T, launchscreen_without_timer, UCHAR);
E_CONFIG_VAL(D, T, log_type, INT);
E_CONFIG_LIMIT(e_config->conformant_ack_timeout, 3.0, 100.0);
E_CONFIG_LIMIT(e_config->calc_vis_without_effect, 0, 1);
E_CONFIG_LIMIT(e_config->save_win_buffer, 0, 1);
+ E_CONFIG_LIMIT(e_config->hold_prev_win_img, 0, 1);
E_CONFIG_LIMIT(e_config->launchscreen_without_timer, 0, 1);
E_CONFIG_LIMIT(e_config->log_type, 0, 255);
E_CONFIG_LIMIT(e_config->rsm_buffer_release_mode, 0, 2);