mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-11 18:38:45 +00:00
Added option to disable redraw on desktop change
This commit is contained in:
parent
3ee6b4fda4
commit
3893146995
@ -40,7 +40,7 @@ local bool_setting = {
|
|||||||
own_window = true, own_window_argb_visual = true, own_window_transparent = true,
|
own_window = true, own_window_argb_visual = true, own_window_transparent = true,
|
||||||
short_units = true, show_graph_range = true, show_graph_scale = true,
|
short_units = true, show_graph_range = true, show_graph_scale = true,
|
||||||
times_in_seconds = true, top_cpu_separate = true, uppercase = true, use_xft = true,
|
times_in_seconds = true, top_cpu_separate = true, uppercase = true, use_xft = true,
|
||||||
draw_blended = true
|
draw_blended = true, forced_redraw = true
|
||||||
};
|
};
|
||||||
|
|
||||||
local num_setting = {
|
local num_setting = {
|
||||||
|
@ -2045,9 +2045,11 @@ void main_loop() {
|
|||||||
#endif
|
#endif
|
||||||
if (ev.xproperty.atom == ATOM(_XROOTPMAP_ID) ||
|
if (ev.xproperty.atom == ATOM(_XROOTPMAP_ID) ||
|
||||||
ev.xproperty.atom == ATOM(_XROOTMAP_ID)) {
|
ev.xproperty.atom == ATOM(_XROOTMAP_ID)) {
|
||||||
draw_stuff();
|
if (forced_redraw.get(*state)) {
|
||||||
next_update_time = get_time();
|
draw_stuff();
|
||||||
need_to_update = 1;
|
next_update_time = get_time();
|
||||||
|
need_to_update = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#ifdef USE_ARGB
|
#ifdef USE_ARGB
|
||||||
}
|
}
|
||||||
|
@ -337,6 +337,8 @@ conky::range_config_setting<int> border_width("border_width", 0,
|
|||||||
conky::simple_config_setting<bool> use_xft("use_xft", false, false);
|
conky::simple_config_setting<bool> use_xft("use_xft", false, false);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
conky::simple_config_setting<bool> forced_redraw("forced_redraw", false, false);
|
||||||
|
|
||||||
#ifdef OWN_WINDOW
|
#ifdef OWN_WINDOW
|
||||||
conky::simple_config_setting<bool> set_transparent("own_window_transparent",
|
conky::simple_config_setting<bool> set_transparent("own_window_transparent",
|
||||||
false, false);
|
false, false);
|
||||||
|
@ -232,6 +232,8 @@ extern conky::range_config_setting<int> border_inner_margin;
|
|||||||
extern conky::range_config_setting<int> border_outer_margin;
|
extern conky::range_config_setting<int> border_outer_margin;
|
||||||
extern conky::range_config_setting<int> border_width;
|
extern conky::range_config_setting<int> border_width;
|
||||||
|
|
||||||
|
extern conky::simple_config_setting<bool> forced_redraw;
|
||||||
|
|
||||||
#ifdef BUILD_XFT
|
#ifdef BUILD_XFT
|
||||||
extern conky::simple_config_setting<bool> use_xft;
|
extern conky::simple_config_setting<bool> use_xft;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user