mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-11 10:38:12 +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,
|
||||
short_units = true, show_graph_range = true, show_graph_scale = 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 = {
|
||||
|
@ -2045,9 +2045,11 @@ void main_loop() {
|
||||
#endif
|
||||
if (ev.xproperty.atom == ATOM(_XROOTPMAP_ID) ||
|
||||
ev.xproperty.atom == ATOM(_XROOTMAP_ID)) {
|
||||
draw_stuff();
|
||||
next_update_time = get_time();
|
||||
need_to_update = 1;
|
||||
if (forced_redraw.get(*state)) {
|
||||
draw_stuff();
|
||||
next_update_time = get_time();
|
||||
need_to_update = 1;
|
||||
}
|
||||
}
|
||||
#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);
|
||||
#endif
|
||||
|
||||
conky::simple_config_setting<bool> forced_redraw("forced_redraw", false, false);
|
||||
|
||||
#ifdef OWN_WINDOW
|
||||
conky::simple_config_setting<bool> set_transparent("own_window_transparent",
|
||||
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_width;
|
||||
|
||||
extern conky::simple_config_setting<bool> forced_redraw;
|
||||
|
||||
#ifdef BUILD_XFT
|
||||
extern conky::simple_config_setting<bool> use_xft;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user