From d500b9cac60c5795e6a21e9adb4b0b31f79667d5 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 25 Apr 2012 13:45:51 +0000 Subject: main/lxdm: glib-2.32 fix --- main/lxdm/glib2-2.32.0.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 main/lxdm/glib2-2.32.0.patch (limited to 'main/lxdm/glib2-2.32.0.patch') diff --git a/main/lxdm/glib2-2.32.0.patch b/main/lxdm/glib2-2.32.0.patch new file mode 100644 index 0000000000..ee5f436b98 --- /dev/null +++ b/main/lxdm/glib2-2.32.0.patch @@ -0,0 +1,21 @@ +From: dgod +Date: Sun, 25 Dec 2011 07:23:19 +0000 (+0800) +Subject: fix event check bug caused cpu 100% +X-Git-Url: http://lxde.git.sourceforge.net/git/gitweb.cgi?p=lxde%2Flxdm;a=commitdiff_plain;h=d4e41ecb;hp=f0951bdf736026b041001e846d2cb93f7f2852e1 + +fix event check bug caused cpu 100% +--- + +diff --git a/src/lxcom.c b/src/lxcom.c +index 02763eb..18ee12e 100644 +--- a/src/lxcom.c ++++ b/src/lxcom.c +@@ -89,7 +89,7 @@ static gboolean lxcom_prepare (GSource *source,gint *timeout) + + static gboolean lxcom_check(GSource *source) + { +- return TRUE; ++ return (((LXComSource*)source)->poll.revents&G_IO_IN)?TRUE:FALSE; + } + + static gboolean lxcom_dispatch (GSource *source,GSourceFunc callback,gpointer user_data) -- cgit v1.2.3