From 3421d01bb00aaf52883a4d21eade96e9c663e05d Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 7 May 2013 00:12:51 -0500 Subject: Fix TDM hang in certain circumstances when themed greeter is deleted This resolves Bug 1453 Resolve themed greeter drawing inconsistencies between composited and non-composited mode --- tdm/kfrontend/kgreeter.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tdm/kfrontend/kgreeter.cpp') diff --git a/tdm/kfrontend/kgreeter.cpp b/tdm/kfrontend/kgreeter.cpp index 0d89b065c..5ff8d5516 100644 --- a/tdm/kfrontend/kgreeter.cpp +++ b/tdm/kfrontend/kgreeter.cpp @@ -154,8 +154,9 @@ public: return TDEListView::paintEmptyArea(p, rect ); const TQPixmap *pm = TQT_TQPIXMAP_CONST(paletteBackgroundPixmap()); - if (!pm || pm->isNull()) + if (!pm || pm->isNull()) { return; + } kdDebug() << "paintEmpty " << rect << endl; TQRect devRect = p->xForm( rect ); @@ -1355,6 +1356,9 @@ void ControlPipeHandlerObject::run(void) { return; } } + + // Thread cancellation point + usleep(1); } TQApplication::eventLoop()->exit(-1); } -- cgit v1.2.1