forked from enlightenment/terminology
config: add item to hide cursor
This commit is contained in:
parent
14d874f149
commit
96218a733c
|
@ -7,7 +7,7 @@
|
|||
#include "col.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define CONF_VER 21
|
||||
#define CONF_VER 22
|
||||
|
||||
#define LIM(v, min, max) {if (v >= max) v = max; else if (v <= min) v = min;}
|
||||
|
||||
|
@ -186,6 +186,8 @@ config_init(void)
|
|||
(edd_base, Config, "emoji_dbl_width", emoji_dbl_width, EET_T_UCHAR);
|
||||
EET_DATA_DESCRIPTOR_ADD_BASIC
|
||||
(edd_base, Config, "shine", shine, EET_T_INT);
|
||||
EET_DATA_DESCRIPTOR_ADD_BASIC
|
||||
(edd_base, Config, "hide_cursor", hide_cursor, EET_T_DOUBLE);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -260,6 +262,7 @@ config_sync(const Config *config_src, Config *config)
|
|||
eina_stringshare_replace(&(config->theme), config_src->theme);
|
||||
config->scrollback = config_src->scrollback;
|
||||
config->tab_zoom = config_src->tab_zoom;
|
||||
config->hide_cursor = config_src->hide_cursor;
|
||||
config->vidmod = config_src->vidmod;
|
||||
config->jump_on_keypress = config_src->jump_on_keypress;
|
||||
config->jump_on_change = config_src->jump_on_change;
|
||||
|
@ -571,6 +574,7 @@ config_new(void)
|
|||
}
|
||||
_add_default_keys(config);
|
||||
config->shine = 255;
|
||||
config->hide_cursor = 5.0;
|
||||
}
|
||||
return config;
|
||||
}
|
||||
|
@ -699,7 +703,11 @@ config_load(const char *key)
|
|||
config->emoji_dbl_width = EINA_TRUE;
|
||||
EINA_FALLTHROUGH;
|
||||
/*pass through*/
|
||||
case CONF_VER: /* 21 */
|
||||
case 21:
|
||||
config->hide_cursor = 5.0;
|
||||
EINA_FALLTHROUGH;
|
||||
/*pass through*/
|
||||
case CONF_VER: /* 22 */
|
||||
config->version = CONF_VER;
|
||||
break;
|
||||
default:
|
||||
|
@ -766,6 +774,7 @@ config_fork(const Config *config)
|
|||
SCPY(background);
|
||||
CPY(scrollback);
|
||||
CPY(tab_zoom);
|
||||
CPY(hide_cursor);
|
||||
CPY(vidmod);
|
||||
CPY(jump_on_change);
|
||||
CPY(jump_on_keypress);
|
||||
|
|
|
@ -57,6 +57,7 @@ struct _Config
|
|||
const char *theme;
|
||||
const char *background;
|
||||
double tab_zoom;
|
||||
double hide_cursor;
|
||||
int vidmod;
|
||||
int opacity;
|
||||
int shine;
|
||||
|
|
Loading…
Reference in New Issue