Package: desklaunch
Version: 1.1.7
Severity: important
Tags: upstream patch

Desklaunch consumes a lot of CPU time (about 5% on my system) while doing 
nothing.
This problem could easily be solved as shown below

<<<< patch start
--- desklaunch-1.1.7/desklaunch.c       2010-02-14 16:13:07.000000000 +0100
+++ desklaunch-mri/desklaunch.c 2010-11-09 20:14:40.000000000 +0100
@@ -541,14 +550,16 @@
 main (int argc, char *argv[])
 {
        initialize ();
+       int loop = 0;
 
        /* Event loop */
        while (1)
                {
                        XEvent ev;
 
-                       while (XPending (dpy))
+                       while (loop || XPending (dpy))
                                {
+                                       loop = 0;
                                        XNextEvent (dpy, &ev);
                                        switch (ev.type)
                                                {
@@ -573,6 +584,7 @@
                                        parse_rc (getenv ("HOME"), RCFILE);
                                }
                        usleep (250);
+                       loop = 1;
                }
        return 0;
 }
<<<< patch end





-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.34.1MRI (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages desklaunch depends on:
ii  libc6                         2.11.2-7   Embedded GNU C Library: Shared lib
ii  libx11-6                      2:1.3.3-3  X11 client-side library
ii  libxext6                      2:1.1.2-1  X11 miscellaneous extension librar
ii  libxpm4                       1:3.5.8-1  X11 pixmap library

desklaunch recommends no packages.

desklaunch suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to