Hi,
I have created a pull request on github.
Regards
Damian
Am 01.05.2014 06:42, schrieb Vincent Cheng:
On Wed, Apr 30, 2014 at 4:12 AM, Me <m...@arcsin.de> wrote:
Package: conky-std
Version: 1.9.0-2
Severity: normal
File: /usr/bin/conky
Dear Maintainer,
conky terminates reproducibly after several minutes on my system logging the
following:
Conky: desktop window (1800003) is subwindow of root window (d3)
Conky: window type - desktop
Conky: drawing to created window (0x2e00002)
Conky: drawing to double buffer
Conky: you don't need that many fonts, sorry.
In between, conky works as expected. The following patch helps:
--- conky-1.9.0.orig/src/specials.c
+++ conky-1.9.0/src/specials.c
@@ -330,6 +330,15 @@ void new_gauge(struct text_object *obj,
}
#ifdef X11
+int find_font(char *name)
+{
+ int i;
+ for (i = 0; i < font_count; i++)
+ if (strncmp(name, fonts[i].name, DEFAULT_TEXT_BUFFER_SIZE)
== EQUAL)
+ return i;
+ return 0;
+}
+
void new_font(char *buf, char *args)
{
if ((output_methods & TO_X) == 0)
@@ -337,6 +346,13 @@ void new_font(char *buf, char *args)
if (args) {
struct special_t *s = new_special(buf, FONT);
+ int index;
+
+ if (index = find_font(args))
+ {
+ s->font_added = index;
+ return;
+ }
if (s->font_added > font_count || !s->font_added ||
(strncmp(args, fonts[s->font_added].name, DEFAULT_TEXT_BUFFER_SIZE) !=
EQUAL) ) {
int tmp = selected_font;
Can you forward the patch upstream [1]? Thanks!
Regards,
Vincent
[1] https://github.com/brndnmtthws/conky
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org